Skip to content

Commit

Permalink
fix webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Jan 3, 2023
1 parent 85e9791 commit bc42560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sizebot/cogs/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit bc42560

Please sign in to comment.