Skip to content

Commit

Permalink
closes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
LBlend committed Dec 14, 2023
1 parent efa928d commit a3f58f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cogs/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
2 changes: 1 addition & 1 deletion src/cogs/tempvoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit a3f58f3

Please sign in to comment.