feat(owner): make owner commands be avaliable in dms

This commit is contained in:
neoarz
2025-09-22 10:22:06 -04:00
parent deef9156fa
commit 84d3e5df33
6 changed files with 24 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import os
import signal
import discord
from discord import app_commands
from discord.ext import commands
from discord.ext.commands import Context
@@ -23,6 +24,8 @@ class Shutdown(commands.Cog, name="shutdown"):
name="shutdown",
description="Make the bot shutdown.",
)
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
@app_commands.allowed_installs(guilds=True, users=True)
@commands.is_owner()
async def shutdown(self, context: Context) -> None:
"""