简体   繁体   中英

Discord bot crashes when message contain mention

undefined:1
(@!310599774002872330)
 ^

SyntaxError: Invalid or unexpected token

Commands work fine but whenever it involves a mention/ping it crashes the bot and spits out the above error.

Sorry it was because i made an eval command that looks for content within <>, and so it thought the mention was one of those.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM