Fixed /user reset command #179

This commit is contained in:
Sven Heidemann 2023-01-13 23:26:38 +01:00
parent 0379c3ed9b
commit 460bb42028

View File

@ -159,8 +159,11 @@ class UserGroup(DiscordCommandABC):
embed.add_field(name=self._t.transform('modules.base.user.atr.lefts'), value=lefts_string) embed.add_field(name=self._t.transform('modules.base.user.atr.lefts'), value=lefts_string)
if is_mod or member == ctx.author: if is_mod or member == ctx.author:
embed.add_field(name=self._t.transform('modules.base.user.atr.warnings'), embed.add_field(
value=self._t.transform('common.not_implemented_yet'), inline=False) name=self._t.transform('modules.base.user.atr.warnings'),
value=self._t.transform('common.not_implemented_yet'),
inline=False
)
# send to interaction because of sensitive data # send to interaction because of sensitive data
await self._message_service.send_interaction_msg(ctx.interaction, embed, wait_before_delete=wait) await self._message_service.send_interaction_msg(ctx.interaction, embed, wait_before_delete=wait)
@ -295,6 +298,10 @@ class UserGroup(DiscordCommandABC):
self._db.save_changes() self._db.save_changes()
await self._level.check_level(member) await self._level.check_level(member)
elif atr == 'ontime':
self._user_joined_voice_channel.delete_user_joined_voice_channel_by_user_id(user.user_id)
self._db.save_changes()
else: else:
await self._message_service.send_interaction_msg( await self._message_service.send_interaction_msg(
ctx.interaction, ctx.interaction,