discord.js bot replies to itself

前端 未结 5 1079
情话喂你
情话喂你 2020-12-19 01:38

I am currently coding my first discord bot, it can already play YouTube music.

if (message.content.includes(\"         


        
5条回答
  •  鱼传尺愫
    2020-12-19 02:05

    You can simply just check if the user sending the message is a bot. For example:

    if (!msg.author.bot) {
        
    } 
    

    Hope this was helpful, thank you!

提交回复
热议问题