dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
684 stars 162 forks source link

ImportError: cannot import name 'AsyncWebhookAdapter' from 'discord' #251

Closed theAbdoSabbagh closed 2 years ago

theAbdoSabbagh commented 2 years ago

Summary

Importing AsyncWebhookAdapter doesn't work

Reproduction Steps

just import AsyncWebhookAdapter from discord

Code

from discord import AsyncWebhookAdapter

Expected Results

should import AsyncWebhookAdapter

Actual Results

doesn't import and raises an ereor

System Information

I installed discord.py-self rebase with pip install git+https://github.com/dolfies/discord.py-self@rebase

Checklist

Additional Information

No response

TheOnlyWayUp commented 2 years ago

Can reproduce

>>> [d for d in dir(discord) if 'webhook' in d.lower()]
['PartialWebhookChannel', 'PartialWebhookGuild', 'SyncWebhook', 'SyncWebhookMessage', 'Webhook', 'WebhookMessage', 'WebhookType', 'webhook']

on commit 0f2dda9dd4392039576243a27fc34f7ab9542e2e.

dolfies commented 2 years ago

This no longer exists in upstream 2.0. Working as intended.