Fixed bug replated to sending error message in interactionCreate.js

This commit is contained in:
Christer Warén 2021-09-05 03:44:28 +03:00
parent 534bc74936
commit 38af503626

View File

@ -3,7 +3,7 @@ module.exports = {
async execute(client, interaction) {
const permissions = interaction.channel.permissionsFor(interaction.client.user);
if (!permissions.has('EMBED_LINKS')) return interaction.send(client.messages.noPermsEmbed);
if (!permissions.has('EMBED_LINKS')) return interaction.reply(client.messages.noPermsEmbed);
if(interaction.isCommand()){
const commandName = interaction.commandName;