From 5883d6d72661e453b5558756f63ef0d70466e6f4 Mon Sep 17 00:00:00 2001 From: Legonzaur Date: Sat, 17 Jun 2023 00:10:34 +0200 Subject: [PATCH] set load command as global --- src/commands/goob.ts | 2 +- src/commands/load.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/goob.ts b/src/commands/goob.ts index 159bdd6..a4d328e 100644 --- a/src/commands/goob.ts +++ b/src/commands/goob.ts @@ -2,7 +2,7 @@ import { type CommandInteraction, SlashCommandBuilder, EmbedBuilder, type Message, ButtonStyle, ButtonBuilder, ActionRowBuilder, ComponentType, type GuildMember } from 'discord.js' -import { checkMemberPermissions, deleteGoob, execute, getMemberPermissionsRaw } from '../db' +import { checkMemberPermissions, deleteGoob, execute } from '../db' module.exports = { global: true, diff --git a/src/commands/load.ts b/src/commands/load.ts index 0a162f3..91ea7ab 100644 --- a/src/commands/load.ts +++ b/src/commands/load.ts @@ -8,7 +8,7 @@ import { owner_id } from '../config.json' import db, { checkMemberPermissions, execute, insertGoob } from '../db' module.exports = { - global: false, + global: true, data: new SlashCommandBuilder() .setName('load') .setDescription('Loads all past goobers from this channel'),