From bc425605bfb024aeeb404a78b125f7bbb0724acd Mon Sep 17 00:00:00 2001 From: DigiDuncan Date: Tue, 3 Jan 2023 00:37:35 -0500 Subject: [PATCH] fix webhook --- sizebot/cogs/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sizebot/cogs/help.py b/sizebot/cogs/help.py index 78ac57ae..d019762c 100644 --- a/sizebot/cogs/help.py +++ b/sizebot/cogs/help.py @@ -5,7 +5,7 @@ from datetime import datetime from packaging import version -from discord import Embed, Webhook, AsyncWebhookAdapter +from discord import Embed, Webhook from discord.ext import commands from sizebot import __version__ @@ -41,7 +41,7 @@ async def post_report(report_type, message, report_text): async with aiohttp.ClientSession() as session: - webhook = Webhook.from_url(conf.bugwebhookurl, adapter=AsyncWebhookAdapter(session)) + webhook = Webhook.from_url(conf.bugwebhookurl, session = session) guild_name = "DM" if not message.channel.guild else message.channel.guild.name await webhook.send( f"**{report_type}** from <@{message.author.id}> in {guild_name}:\n"