From bff654ca0a6bc18d702b9c51e9829aa9e143470b Mon Sep 17 00:00:00 2001 From: Paillat Date: Sat, 10 Dec 2022 19:53:15 +0100 Subject: [PATCH] Update settings.py --- code/cogs/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cogs/settings.py b/code/cogs/settings.py index d96b342..60f89d1 100644 --- a/code/cogs/settings.py +++ b/code/cogs/settings.py @@ -128,7 +128,7 @@ class Settings (discord.Cog) : #when someone mentions the bot, check if the guild is in the database and if the bot is enabled. If it is, send a message answering the mention @discord.slash_command(name="pretend", description="Make the bot pretend to be someone else") @discord.option(name="pretend to be...", description="The person/thing you want the bot to pretend to be. Leave blank to disable pretend mode", required=False) - async def pretend(self, ctx: discord.ApplicationContext, pretend_to_be: str): + async def pretend(self, ctx: discord.ApplicationContext, pretend_to_be: str = None): debug(f"The user {ctx.author} ran the pretend command in the channel {ctx.channel} of the guild {ctx.guild}, named {ctx.guild.name}") #check if the guild is in the database c.execute("SELECT * FROM data WHERE guild_id = ?", (ctx.guild.id,))