mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
feat(owner): make owner commands be avaliable in dms
This commit is contained in:
@@ -22,6 +22,8 @@ class Say(commands.Cog, name="say"):
|
||||
name="say",
|
||||
description="The bot will say anything you want.",
|
||||
)
|
||||
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
|
||||
@app_commands.allowed_installs(guilds=True, users=True)
|
||||
@app_commands.describe(message="The message that should be repeated by the bot")
|
||||
@commands.is_owner()
|
||||
async def say(self, context: Context, *, message: str) -> None:
|
||||
@@ -37,6 +39,8 @@ class Say(commands.Cog, name="say"):
|
||||
name="embed",
|
||||
description="The bot will say anything you want, but within embeds.",
|
||||
)
|
||||
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
|
||||
@app_commands.allowed_installs(guilds=True, users=True)
|
||||
@app_commands.describe(message="The message that should be repeated by the bot")
|
||||
@commands.is_owner()
|
||||
async def embed(self, context: Context, *, message: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user