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
Watch video [NEW] - How to make an IMPERSONATE COMMAND for your discord bot! || Discord.js V14 online, duration hours minute second in high quality that is uploaded to the channel MrJAwesome 05 April 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,730 times and liked it 23 visitors.