feat(bot): make syntrel work in dms and group chats

This commit is contained in:
neoarz
2025-10-15 15:58:57 -04:00
parent 6a43c93637
commit cb1596a1d8
12 changed files with 41 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import discord
from discord import app_commands
from discord.ext import commands
from discord.ext.commands import Context
from typing import Optional
@@ -20,6 +21,9 @@ def _require_group_prefix(context: Context) -> bool:
content = context.message.content.strip().lower()
return content.startswith(f"{prefix}{group} ")
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
@app_commands.allowed_installs(guilds=True, users=True)
class Media(commands.GroupCog, name="media"):
def __init__(self, bot) -> None:
self.bot = bot