MentionedUsers does not include the person pinged during a reply.
Created by: ProfDoof
Summary
MentionedUsers does not include the person pinged during a reply.
Details
Ok, so the problem that I found is related to the way that we handle UserMentions and honestly all the other mentions as well. It would appear that we manually parse them out ourselves instead of using the mentioned channels/users/roles that are sent by Discord. Thing is that whether the reply that we were sent pinged the user that it was replying to is in the mentions provided by Discord and not in the mentions that we can parse from the content. My question is why do we manually parse it when Discord hands us the mentions and if it's for an important reason how would you suggest we handle getting the reply mentioned user into the MentionedUsers list. If we can just get rid of the extra parsing I would do so. If we can't then I would suggest combining the list provided by Discord and the list we generate to ensure we aren't accidentally removing information.
Steps to reproduce
- Reply to a message pinging the user in that message with just some string content, no mentions or anything.
- View the MessageCreatedEventArgs and the Message in those args and you will notice that the MentionedUsers do not include the pinged user even though they should.