Summary
Using bot.fetch_webhook, I receive an error that '_MissingSentinel' object has no attribute 'request'
Reproduction Steps
Latest version of Pycord installed via the GitHub (alpha version)
Plug in a valid webhook id to bot.fetch_webhook
Receive the error
Minimal Reproducible Code
url = await bot .fetch_webhook (webhookid )
await url .send (embed = embed )
Expected Results
Send an embed to the specified webhook
Actual Results
Received this error:
File "/home/ec2-user/Loggy/cogs/logevents.py" , line 151 , in on_message_edit
url = await bot .fetch_webhook (webhookid )
File "/home/ec2-user/.local/lib/python3.8/site-packages/discord/client.py" , line 1555 , in fetch_webhook
data = await self .http .get_webhook (webhook_id )
File "/home/ec2-user/.local/lib/python3.8/site-packages/discord/http.py" , line 276 , in request
async with self .__session .request (method , url , ** kwargs ) as response :
AttributeError : '_MissingSentinel' object has no attribute 'request'
(webhook id is substituted out so as to not give everyone access to a webhook)
Intents
discord.Intents.all()
System Information
Python v3.8.5-final
py-cord v2.0.0-candidate
py-cord pkg_resources: v2.0.0rc1
aiohttp v3.8.1
system info: Linux 5.10.82-83.359.amzn2.x86_64 Update README.rst #1 SMP Tue Nov 30 20:47:14 UTC 2021
Checklist
Additional Context
No response
Summary
Using bot.fetch_webhook, I receive an error that '_MissingSentinel' object has no attribute 'request'
Reproduction Steps
Minimal Reproducible Code
Expected Results
Send an embed to the specified webhook
Actual Results
Received this error:
(webhook id is substituted out so as to not give everyone access to a webhook)
Intents
discord.Intents.all()
System Information
Checklist
Additional Context
No response