[NEW] - How to make an IMPERSONATE COMMAND for your discord bot! || Discord.js V14

Опубликовано: 06 Октябрь 2024
на канале: MrJAwesome
1,730
23

This is how you can make an impersonate command for your discord bot!

!! IMPORTANT !! Put the following code under the initialization of the message variable- this will prevent people from pinging @everyone or @here with the command.
🡺 if (message.includes('@everyone') || message.includes('@here')) return await interaction.reply({ content: `You cannot mention everyone/here with this command`, ephemeral: true})

Want to become a member? Want access to pastebins? Join below!
🡺    / @mrjawesomeyt  

Get my Tutorial Bot in your servers:
🡺 https://discord.com/oauth2/authorize?...

Invite my bots!:
🡺 https://top.gg/bot/977594345756688384 (ESKI)

🡺 https://discord.com/api/oauth2/author... (SERVER MANAGER)

MongoDB Guide:
🡺    • [OLD] - MongoDB Connection GUIDE || D...  

Slash Command Package:
🡺    • How to code a discord bot - SLASH COM...  

Join my discord (HELP SERVER):
🡺   / discord