channel = await bot.fetch_channel(ID)
async for message in channel.history(limit = None, after = 1661976000):
...
Expected Results
It was supposed to work and iterate over the channel messages
Actual Results
Ignoring exception in on_ready
Traceback (most recent call last):
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 396, in _run_event
await coro(*args, **kwargs)
File "hidden", line 38, in hidden
async for message in channel.history(limit = None, after = 1661976000):
File "C:\Users\.\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\abc.py", line 1847, in history
data, state, limit = await strategy(retrieve, state, limit)
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\abc.py", line 1776, in _after_strategy
after_id = after.id if after else None
AttributeError: 'int' object has no attribute 'id'
System Information
Python v3.10.3-final
discord.py-self v2.0.0-alpha
discord.py-self pkg_resources: v2.0.0a2
aiohttp v3.8.1
system info: Windows 10 10.0.22000
Checklist
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
Summary
Tried scraping some messages, got an error
Reproduction Steps
I used
channel.history
and got the issue.Code
Expected Results
It was supposed to work and iterate over the channel messages
Actual Results
System Information
Checklist
Additional Information
No response