MessageType for messages should be MessageType.reply and more but it's only MessageType.default
Reproduction Steps
Go through a channel's history using the history method.
Get the list of messages.
The type field of almost every message is MessageType.default when in lots of cases it should be MessageType.reply
Code
async def get_messages(channel: discord.TextChannel):
messages: list[discord.Message] = await channel.history(limit=10000).flatten()
# THIS SHOULD FILTER OUT REPLIES BUT IT DOESN'T SINCE THE REPLIES ALSO HAVE MESSAGETYPE.DEFAULT
messages = [
message for message in messages if message.type == discord.MessageType.default
]
print(channel.name, len(messages))
return messages
Expected Results
The type should've been MessageType.reply
Actual Results
The type was MessageType.default
System Information
Python v3.10.2-final
discord.py-self v1.9.2-final
aiohttp v3.7.4.post0
system info: Windows 10 10.0.10240
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
MessageType
for messages should beMessageType.reply
and more but it's onlyMessageType.default
Reproduction Steps
history
method.type
field of almost every message isMessageType.default
when in lots of cases it should beMessageType.reply
Code
Expected Results
The
type
should've beenMessageType.reply
Actual Results
The
type
wasMessageType.default
System Information
Checklist
Additional Information
No response