From 5d3ceff3bfc942d63eb6af992ed0581fae349b1a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 13 Jan 2023 12:24:58 +0100 Subject: [PATCH] Renamed remove command #179 --- kdb-bot/src/modules/base/command/user_group.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kdb-bot/src/modules/base/command/user_group.py b/kdb-bot/src/modules/base/command/user_group.py index c38a7898..5b2ce3b3 100644 --- a/kdb-bot/src/modules/base/command/user_group.py +++ b/kdb-bot/src/modules/base/command/user_group.py @@ -231,8 +231,8 @@ class UserGroup(DiscordCommandABC): @commands.guild_only() @CommandChecks.check_is_ready() @CommandChecks.check_is_member_moderator() - async def remove(self, ctx: Context, atr: str, member: discord.Member = None): - self._logger.debug(__name__, f'Received command user-remove {atr} {ctx}:{member}') + async def reset(self, ctx: Context, atr: str, member: discord.Member = None): + self._logger.debug(__name__, f'Received command user-reset {atr} {ctx}:{member}') if member is None or not isinstance(member, discord.Member): member = ctx.author @@ -259,11 +259,11 @@ class UserGroup(DiscordCommandABC): await self._message_service.send_interaction_msg( ctx.interaction, - self._t.transform(f'modules.base.user.remove.{atr.lower()}').format(atr, member.mention) + self._t.transform(f'modules.base.user.reset.{atr.lower()}').format(atr, member.mention) ) - @remove.autocomplete('atr') - async def remove_autocomplete(self, interaction: discord.Interaction, current: str) -> List[ + @reset.autocomplete('atr') + async def reset_autocomplete(self, interaction: discord.Interaction, current: str) -> List[ app_commands.Choice[str] ]: return [app_commands.Choice(name=value, value=key) for key, value in self._atr_list]