|
|
@ -12,7 +12,7 @@ export default {
|
|
|
|
const client = interaction.client;
|
|
|
|
const client = interaction.client;
|
|
|
|
if (interaction.type !== InteractionType.ApplicationCommand) return;
|
|
|
|
if (interaction.type !== InteractionType.ApplicationCommand) return;
|
|
|
|
|
|
|
|
|
|
|
|
const globalBlacklist = await db.Blacklists.findOne({ where: { type:'global', uid:interaction.user.id } })
|
|
|
|
const globalBlacklist = await db.Blacklists.findOne({ where: { type:'global', uid:interaction.user.id } });
|
|
|
|
const commandBlacklist = await db.Blacklists.findOne({ where: { type:interaction.commandName, uid:interaction.user.id } });
|
|
|
|
const commandBlacklist = await db.Blacklists.findOne({ where: { type:interaction.commandName, uid:interaction.user.id } });
|
|
|
|
|
|
|
|
|
|
|
|
if (interaction.guild) {
|
|
|
|
if (interaction.guild) {
|
|
|
@ -38,10 +38,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
if (!command) return;
|
|
|
|
if (!command) return;
|
|
|
|
|
|
|
|
|
|
|
|
const isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });
|
|
|
|
let isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });
|
|
|
|
|
|
|
|
|
|
|
|
if (commandName === 'optout') {
|
|
|
|
if (commandName === 'optout') {
|
|
|
|
isOptOut = true
|
|
|
|
isOptOut = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const timestamp = new Date();
|
|
|
|
const timestamp = new Date();
|
|
|
|