From a3f58f3c05ee42b8d50b85215ad819ab07bdb8bc Mon Sep 17 00:00:00 2001 From: LBlend <24893890+LBlend@users.noreply.github.com> Date: Thu, 14 Dec 2023 05:59:23 +0100 Subject: [PATCH] closes #27 --- src/cogs/info.py | 6 +++--- src/cogs/tempvoice.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cogs/info.py b/src/cogs/info.py index 2e22f8b..371319a 100644 --- a/src/cogs/info.py +++ b/src/cogs/info.py @@ -488,9 +488,9 @@ async def guild_voice_channel(self, interaction: discord.Interaction, kanal: dis embed.add_field(name="Antall koblet til", value=len(kanal.members)) await interaction.response.send_message(embed=embed) - @commands.guild_only() - @commands.bot_has_permissions(embed_links=True) - @commands.cooldown(1, 5) + @app_commands.guild_only() + @app_commands.checks.bot_has_permissions(embed_links=True) + @app_commands.checks.cooldown(1, 5) @guild_group.command(name="topproller", description="Viser rollene med flest brukere i kronologisk rekkefølge") async def guild_top_roles(self, interaction: discord.Interaction): """ diff --git a/src/cogs/tempvoice.py b/src/cogs/tempvoice.py index 98f1fca..f61d0c9 100644 --- a/src/cogs/tempvoice.py +++ b/src/cogs/tempvoice.py @@ -58,7 +58,7 @@ async def check_temp_vc_channels(self): finally: del self.temp_vc_channels[channel] - @commands.cooldown(1, 300, commands.BucketType.guild) + @app_commands.checks.cooldown(1, 300) @app_commands.command(name="tempvoice") async def tempvoice(self, interaction: discord.Interaction, name: str, limit: int = 0): """