discord.js bot replies to itself

前端 未结 5 1058
情话喂你
情话喂你 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 01:53

    You may use this code which avoids doing anything if the author is a bot:

    if(message.author.bot) return;
    

提交回复
热议问题