From 42883c3a99df0cd340a92ee7d6216e40c96e6b2b Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 1 Mar 2024 20:03:34 +0000 Subject: [PATCH] Fix give command using the wrong username (#178) # 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. - Fix the give command incorrectly using the username of the user who used the command instead of the user who it was actually given to #174 ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # 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. # Checklist - [ ] My code follows the style guidelines of this project - [ ] 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 - [ ] 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/178 Reviewed-by: VylpesTester Co-authored-by: Ethan Lane Co-committed-by: Ethan Lane --- src/commands/give.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/give.ts b/src/commands/give.ts index ad360a9..7bc24be 100644 --- a/src/commands/give.ts +++ b/src/commands/give.ts @@ -63,6 +63,6 @@ export default class Give extends Command { await inventory.Save(Inventory, inventory); - await interaction.reply(`${card.name} given to ${interaction.user}, they now have ${inventory.Quantity}`); + await interaction.reply(`${card.name} given to ${user.username}, they now have ${inventory.Quantity}`); } } \ No newline at end of file