From 53a51fdf9694ad92b3af7a68a1f53dfa1e4e3a15 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 14 Oct 2023 17:09:24 +0100 Subject: [PATCH] Allow user to be able to see who claimed what card (#57) # Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Allow user to be able to see who claimed what card #24 ## Type of change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. - This has been tested locally by running the claim function and seeing if it mentions me # Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/57 Reviewed-by: VylpesTester Co-authored-by: Ethan Lane Co-committed-by: Ethan Lane --- src/buttonEvents/Claim.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buttonEvents/Claim.ts b/src/buttonEvents/Claim.ts index 6f9ae58..0db89fe 100644 --- a/src/buttonEvents/Claim.ts +++ b/src/buttonEvents/Claim.ts @@ -40,6 +40,6 @@ export default class Claim extends ButtonEvent { await claim.Save(eClaim, claim); - await interaction.reply('Card claimed'); + await interaction.reply(`Card claimed by ${interaction.user}`); } } \ No newline at end of file