#i have a working issue?

1 messages · Page 1 of 1 (latest)

glass rock
#

Why you use SyncWebhook

vital juniper
#

tbf i never use webhooks. like ever

#

so i have no idea what to use

#

for webhooks

glass rock
#

SyncWebhook.send is blocking

#

you should use normal Webhook instead

vital juniper
#
async def webhook(url, description):
    async with aiohttp.ClientSession() as session:
        webhook = Webhook.from_url(url, session=session)
        embed = disnake.Embed(description=description, color=0x01b4ed)
        await webhook.send(embed=embed)```
#

this is from like an old bot of mine

glass rock
#

yes

vital juniper
#

okayyy

#

ty

#

?close

#

!close