From c592c6d7787ecbadc0d1eb027a10588c9b7ea67a Mon Sep 17 00:00:00 2001 From: Timpe Hoerig Date: Mon, 10 Jul 2023 16:56:25 +0200 Subject: [PATCH] added await --- src/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.py b/src/bot.py index 0544a1d..8a3526f 100644 --- a/src/bot.py +++ b/src/bot.py @@ -565,7 +565,7 @@ async def on_accept( ) embed = accept_interaction.message.embeds[0] embed = embed.set_footer(text=f"Accepted by {accept_interaction.user.nick}") - invite = channel.create_invite(max_age=120, max_uses=2) + invite = await channel.create_invite(max_age=120, max_uses=2) await request_interaction.user.send( support_request_accepted(request_interaction.user.nick, invite) )