Skip to content
Snippets Groups Projects
Commit 6df06ab9 authored by dnns01's avatar dnns01
Browse files

Add text commands as well

parent df8e7dff
Branches
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ class TextCommands(commands.GroupCog, name="commands", description="Text Command
@app_commands.command(name=command.command, description=command.description)
@app_commands.guild_only()
@app_commands.describe(public="Zeige die Ausgabe des Commands öffentlich, für alle Mitglieder sichtbar.")
async def process_command(interaction: Interaction, public: bool):
async def process_command(interaction: Interaction, public: bool = True):
await interaction.response.defer(ephemeral=not public)
if cmd := Command.get_or_none(Command.command == interaction.command.name):
texts = list(cmd.texts)
......
......@@ -20,8 +20,8 @@ OWNER = int(os.getenv('DISCORD_OWNER'))
PIN_EMOJI = "📌"
intents = Intents.all()
extensions = ["welcome", "xkcd", "mod_mail", "module_information", "links", "news", "appointments"]
# ["learninggroups", "polls", "text_commends", "timer", "voice"]
extensions = ["welcome", "xkcd", "mod_mail", "module_information", "links", "news", "appointments", "text_commends"]
# ["learninggroups", "polls", "timer", "voice"]
_log = logging.getLogger('discord.boty')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment