dolfies / discord.py-self

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

channel.history() still doesn't work #407

Closed serenity091 closed 1 year ago

serenity091 commented 1 year ago

Summary

I removed .flatten()

Reproduction Steps

channel.history doesn't work

Screen Shot 2022-10-24 at 7 09 18 PM

this is a reopen of https://github.com/dolfies/discord.py-self/issues/405

Code

No response

Expected Results

channel.history returns channel history

Actual Results

TypeError: object async_generator can't be used in 'await' expression

System Information

Checklist

Additional Information

No response

RuriYoshinova commented 1 year ago
async for message in discord.TextChannel.history():
    # do something