use the correct bot permission decorator

This commit is contained in:
LBlend committed 2022-11-17 03:38:24 +01:00
1 parent beef71a1d7
commit 0795c4d4f8
2 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -367,7 +367,7 @@ class Info(commands.Cog):
embed.set_footer(text=f'Side {paginator.current_page}/{paginator.total_page_count}')
return embed
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@commands.guild_only()
@app_commands.checks.cooldown(1, 5)
@guild_oldest_group.command(name="lagd", description="Liste over de eldste brukerene på serveren basert på når de ble lagd")
@@ -389,7 +389,7 @@ class Info(commands.Cog):
embed = self.__construct_oldest_embed(paginator, paginator.get_current_page(), embed)
await interaction.response.send_message(embed=embed, view=view)
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@commands.guild_only()
@app_commands.checks.cooldown(1, 5)
@guild_oldest_group.command(name="joined", description="Liste over de eldste brukerene på serveren basert på når de ble med")
+6 -6
View File
@@ -17,14 +17,14 @@ class Misc(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@app_commands.checks.cooldown(1, 2)
@app_commands.command()
async def weeb(self, interaction: discord.Interaction):
"""Kjeft på weebs"""
await interaction.response.send_message("<:sven:762725919604473866> Weebs 👉 <#803596668129509417>")
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@app_commands.checks.cooldown(1, 2)
@app_commands.command()
async def kweeb(self, interaction: discord.Interaction):
@@ -35,7 +35,7 @@ class Misc(commands.Cog):
"""
)
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@app_commands.checks.cooldown(1, 2)
@app_commands.command()
async def owo(self, interaction: discord.Interaction, tekst: str):
@@ -64,7 +64,7 @@ class Misc(commands.Cog):
await interaction.response.send_message(data.json()["info"]["name"])
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@app_commands.checks.cooldown(1, 2)
@app_commands.command()
async def klappifiser(self, interation: discord.Interaction, tekst: str):
@@ -123,7 +123,7 @@ class Misc(commands.Cog):
await interaction.response.send_message(embed=embed)
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@app_commands.checks.cooldown(1, 5)
@app_commands.command()
async def helligdager(self, interaction: discord.Interaction, *, land: str = "NO", år: int = None):
@@ -153,7 +153,7 @@ class Misc(commands.Cog):
embed_templates.default_footer(interaction, embed)
await interaction.response.send_message(embed=embed)
@commands.bot_has_permissions(embed_links=True)
@app_commands.checks.bot_has_permissions(embed_links=True)
@app_commands.checks.cooldown(1, 5)
@app_commands.command()
async def match(self, interaction: discord.Interaction, bruker: discord.Member):