Describe the bug
The msgFilter.ContainsBotMention function calls std.mentionString to get the string that the message will have if it contains the mention. However discord uses a different mention syntax if the user mentioned has a nickname. (<@user_id> is for without nickname, and <@!user_id> for with nickname.)
Expected behavior
That msgFilter.ContainsBotMention should detect mentions of the bot regardless of it's nickname.
Desktop (please complete the following information):
Golang version: 1.14
Using Go modules? yes
Disgord version? v0.26.8
Connected to the gateway before using REST methods? yes
Additional context
Why would discord do this? It just makes no sense to me.
Describe the bug The msgFilter.ContainsBotMention function calls std.mentionString to get the string that the message will have if it contains the mention. However discord uses a different mention syntax if the user mentioned has a nickname. (
<@user_id>
is for without nickname, and<@!user_id>
for with nickname.)Expected behavior That msgFilter.ContainsBotMention should detect mentions of the bot regardless of it's nickname.
Desktop (please complete the following information):
Additional context Why would discord do this? It just makes no sense to me.