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 bda4756 commit 6dc80fcCopy full SHA for 6dc80fc
main.py
@@ -24,12 +24,18 @@
24
25
@bot.command()
26
async def load(ctx, extension):
27
+ if not ctx.author.guild_permissions.administrator:
28
+ await ctx.respond("你沒有權限使用這個指令!", ephemeral=True)
29
+ return
30
bot.load_extension(f"cog.{extension}")
31
await ctx.send(f"📖 {extension} loaded")
32
33
34
35
async def unload(ctx, extension):
36
37
38
39
bot.unload_extension(f"cog.{extension}")
40
await ctx.send(f"📖 {extension} unloaded")
41
0 commit comments