actually make '/admin stop' work. :) last commit had a security problem. fixed.
This commit is contained in:
parent
ffba9d49b8
commit
abadc6be04
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ class AdminExt(commands.GroupCog, name="admin"):
|
||||||
super().__init__() # this is now required in this context.
|
super().__init__() # this is now required in this context.
|
||||||
|
|
||||||
@app_commands.command(name="stop")
|
@app_commands.command(name="stop")
|
||||||
|
@commands.is_owner()
|
||||||
async def admin_stop(self, interaction: discord.Interaction) -> None:
|
async def admin_stop(self, interaction: discord.Interaction) -> None:
|
||||||
""" /admin stop """
|
""" /admin stop """
|
||||||
await interaction.response.send_message("The bot will now shutdown. Good bye! :)", ephemeral=True)
|
await interaction.response.send_message("The bot will now shutdown. Good bye! :)", ephemeral=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue