[BUG] Zoridg can't trigger the special messages on mobile
Closed this issue · 3 comments
C0ZEN commented
Describe the bug
A simple mention of sonia followed by a space and for example basic is not triggering the right action for @Zoridg on his mobile.
To Reproduce
On mobile, mention sonia with space and ping.
Expected behavior
A clear and concise description of what you expected to happen.
It works on desktop.
C0ZEN commented
May 01 02:46:54 sonia-discord app/web.1 ● [DiscordMessageService][09:46:54:344][837988444508127253] <@689829775317139460> basic
May 01 02:46:54 sonia-discord app/web.1 ● [DiscordMessageService][09:46:54:347][837988444508127253] text message
May 01 02:46:54 sonia-discord app/web.1 ● [DiscordMessageTextService][09:46:54:347][837988444508127253] message with valid mention
May 01 02:46:54 sonia-discord app/web.1 ● [DiscordMessageTextService][09:46:54:349][837988444508127253] Sonia was mentioned
May 01 02:46:54 sonia-discord app/web.1 ● [DiscordMessageService][09:46:54:355][837988444508127253] sending message...
C0ZEN commented
https://discordjs.guide/miscellaneous/parsing-mention-arguments.html#implementation
Confirming that the issue is related to the mention.
/**
* @returns {RegExp} A RegExp matching a Discord user mention
*/
export function discordGetMentionRegexp(): RegExp {
return xregexp(`<@!\\d+>`, `gim`);
}
Is handling people with aliased but not when called with the real world name.
github-actions commented
🎉 This issue has been resolved in version 1.95.1 🎉
The release is available on:
Your semantic-release bot 📦🚀