From 08d469a0d8b26f3ea663eab798ac3ac4274c143f Mon Sep 17 00:00:00 2001 From: ryslandevds <87265715+ryslandevds@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:00:04 +0300 Subject: [PATCH] Update testcommands.py --- cogs/testcommands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/testcommands.py b/cogs/testcommands.py index 29dae7f..9e9cc0b 100644 --- a/cogs/testcommands.py +++ b/cogs/testcommands.py @@ -11,7 +11,7 @@ class MuteCommands(commands.Cog): @commands.slash_command(name="мут", description="Заглушает пользователя по всему серверу на указанное время.") @commands.has_permissions(manage_roles=True) async def mute(self, ctx: disnake.AppCommandInteraction, member: disnake.Member, time: int, *, reason=None): - if disnake.utils.get(ctx.author.roles, id=1060541642450411560): + if disnake.utils.get(ctx.author.roles, id=): guild = ctx.guild muted_role = disnake.utils.get(guild.roles, name="Muted") @@ -28,12 +28,12 @@ class MuteCommands(commands.Cog): await member.remove_roles(muted_role) await ctx.send(f"{member.mention} больше не замучен.") else: - await ctx.send(f'{ctx.author.mention}, у вас нет роли <@&1060541642450411560>.') + await ctx.send(f'{ctx.author.mention}, у вас нет роли <>.') @commands.slash_command(name="унмут", description="Снимает мут с указанного пользователя.") @commands.has_permissions(manage_roles=True) async def unmute(self, ctx: disnake.AppCommandInteraction, member: disnake.Member): - if disnake.utils.get(ctx.author.roles, id=1060541642450411560): + if disnake.utils.get(ctx.author.roles, id=): muted_role = disnake.utils.get(ctx.guild.roles, name="Muted") if muted_role not in member.roles: @@ -43,7 +43,7 @@ class MuteCommands(commands.Cog): await member.remove_roles(muted_role) await ctx.send(f"{member.mention} больше не замучен.") else: - await ctx.send(f'{ctx.author.mention}, у вас нет роли <@&1060541642450411560>.') + await ctx.send(f'{ctx.author.mention}, у вас нет роли <@>.') def setup(bot):