We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9a60d commit aef184aCopy full SHA for aef184a
cogs/prefix.py
@@ -3,6 +3,7 @@
3
from typing import TYPE_CHECKING
4
5
from discord.ext import commands
6
+from discord import app_commands
7
8
if TYPE_CHECKING:
9
from discord import Guild
@@ -44,6 +45,7 @@ async def on_guild_remove(self, guild: Guild) -> None:
44
45
46
@commands.hybrid_command(name="prefix")
47
@commands.has_permissions(administrator=True)
48
+ @app_commands.default_permissions(administrator=True)
49
@commands.guild_only()
50
async def prefix(self, ctx: commands.Context[Bot], prefix: str) -> None:
51
"""change bot prefix"""
0 commit comments