I don't want to mention it when I reply in discord.js.

Asked 2 years ago, Updated 2 years ago, 127 views

When I executed the code below, the message was replied, but it was mentioned.
Please tell me how someone won't mention it.
v13.

message.reply({
  content: "hoge"
  allowedMentions: {
    parse —[ ]
  }  
})

javascript node.js discord

2022-09-29 20:43

1 Answers

Since the code has a shape of v12 and [], what about TypeScript?
I think you should check it out.

Below is the code for v13!Good luck!

client.on('messageCreate',message=>{
    if(message.author.bot)return;
    if(message.content.includes('<reactive word>'){
        message.channel.send('<Bot Returns>);
    }
});


2022-09-29 20:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.