v3.5.0 #30
5
main.js
5
main.js
@ -39,6 +39,7 @@ client.once('ready', async () => {
|
|||||||
fn.collections.dotCommands(client);
|
fn.collections.dotCommands(client);
|
||||||
fn.collections.setvalidCommands(client);
|
fn.collections.setvalidCommands(client);
|
||||||
fn.collections.roaches(client);
|
fn.collections.roaches(client);
|
||||||
|
fn.collections.memberships(client);
|
||||||
await fn.download.gifs(client);
|
await fn.download.gifs(client);
|
||||||
await fn.download.pastas(client);
|
await fn.download.pastas(client);
|
||||||
await fn.download.joints(client);
|
await fn.download.joints(client);
|
||||||
@ -68,7 +69,11 @@ client.on('interactionCreate', async interaction => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (client.slashCommands.has(commandName)) {
|
if (client.slashCommands.has(commandName)) {
|
||||||
|
if (fn.checkMembership(client, interaction.user.id)) {
|
||||||
client.slashCommands.get(commandName).execute(interaction);
|
client.slashCommands.get(commandName).execute(interaction);
|
||||||
|
} else {
|
||||||
|
interaction.reply(fn.embeds.noMembership());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
interaction.reply('Sorry, I don\'t have access to that command.');
|
interaction.reply('Sorry, I don\'t have access to that command.');
|
||||||
console.error('Slash command attempted to run but not found: ' + commandName);
|
console.error('Slash command attempted to run but not found: ' + commandName);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user