mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Updated interactionCreate.js
This commit is contained in:
parent
d2a6d70cf6
commit
4c731c1942
@ -3,7 +3,12 @@ module.exports = {
|
|||||||
async execute(client, interaction) {
|
async execute(client, interaction) {
|
||||||
|
|
||||||
const permissions = interaction.channel.permissionsFor(interaction.client.user);
|
const permissions = interaction.channel.permissionsFor(interaction.client.user);
|
||||||
if (!permissions.has('EMBED_LINKS')) return interaction.reply(client.messages.noPermsEmbed);
|
if (!permissions.has('VIEW_CHANNEL')) return;
|
||||||
|
|
||||||
|
if (!permissions.has('EMBED_LINKS')) return interaction.reply({
|
||||||
|
content: client.messages.noPermsEmbed,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
|
|
||||||
if(interaction.isCommand()){
|
if(interaction.isCommand()){
|
||||||
const commandName = interaction.commandName;
|
const commandName = interaction.commandName;
|
||||||
|
Loading…
Reference in New Issue
Block a user