Compare commits
No commits in common. "1edb4d8fef4dfe00fcd2a1880c2de18e8d7faa1d" and "009f365728660a4f13e3325739b468e3f68914ae" have entirely different histories.
1edb4d8fef
...
009f365728
3 changed files with 1 additions and 9 deletions
|
@ -4,7 +4,7 @@ import db from '../../models/index.js';
|
||||||
export default {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('optout')
|
.setName('optout')
|
||||||
.setDescription('Opt out of the non commands features.'),
|
.setDescription('Opt out of the quotation command.'),
|
||||||
category: 'utility',
|
category: 'utility',
|
||||||
async execute(interaction, args, client) {
|
async execute(interaction, args, client) {
|
||||||
const isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });
|
const isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { EmbedBuilder } from 'discord.js';
|
import { EmbedBuilder } from 'discord.js';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
import db from '../../models/index.js';
|
|
||||||
global.boards = {};
|
global.boards = {};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -20,9 +19,6 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author } });
|
|
||||||
if (isOptOut) return;
|
|
||||||
|
|
||||||
let starboardChannel, shameboardChannel;
|
let starboardChannel, shameboardChannel;
|
||||||
let reactionCount = reaction.count;
|
let reactionCount = reaction.count;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { EmbedBuilder } from 'discord.js';
|
import { EmbedBuilder } from 'discord.js';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
import db from '../../models/index.js';
|
|
||||||
global.boards = {};
|
global.boards = {};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -20,9 +19,6 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author } });
|
|
||||||
if (isOptOut) return;
|
|
||||||
|
|
||||||
let starboardChannel, shameboardChannel;
|
let starboardChannel, shameboardChannel;
|
||||||
let reactionCount = reaction.count;
|
let reactionCount = reaction.count;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue