简体   繁体   中英

Discord.js | Adding reactions to a message

The question is in the title! In the console, it says that there is a missing ). I don't know where though... Here is my code so far:

message.react("🏊").then(() => message.react("⛹️").then(() => message.react("🏌")));

To be clear, in the console it says this: Syntax Error: Unexpected Token ')'

message.react("🏊")
.then(() => message.react("⛹️"))
.then(() => message.react("🏌")); 

i think you typo on

.then(() => message.react("🏌"))); 

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