From a6bc6ab8ab960750116c03b2f7167111031df23a Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 5 Oct 2021 19:11:57 +0200 Subject: [PATCH] Fix some small issues with some slash commands --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 297ef58..81aed6f 100644 --- a/bot.py +++ b/bot.py @@ -425,7 +425,7 @@ async def list_messages_slash(ctx: SlashContext, channel: Optional[discord.abc.G description="Toss a pipelin to your favourite teacher and see whether it's schnel or slo" ) async def flip_pipelin_slash(ctx: SlashContext): - await ctx.channel.send("Pipelin " + random.choice(['schnel', 'slo'])) + await ctx.send("Pipelin " + random.choice(['schnel', 'slo'])) # ____ ____ ___ _ _ ____ ____ @@ -826,8 +826,9 @@ async def quote_list_slash(ctx: SlashContext, author: Optional[str] = None): coroutines = [] await ctx.defer() for author, author_quotes in quotes.items(): - coroutines.append(ctx.send(embed=create_list_embed(author, author_quotes))) + coroutines.append(ctx.channel.send(embed=create_list_embed(author, author_quotes))) await asyncio.gather(*coroutines) + await ctx.send(content="") else: author = author.strip().title() if author in quotes: