convert some commands to global commands

This commit is contained in:
SowinskiBraeden committed 2022-08-30 11:52:36 -07:00
1 parent 8330ece067
commit 7c8c484122
19 files changed
+72 -24

No files matched your search

+4 -3
View File
@@ -1,3 +1,4 @@
const { RegisterGlobalCommands, RegisterGuildCommands} = require("../util/RegisterSlashCommands");
const { Collection, Client, EmbedBuilder, Routes } = require('discord.js');
const MongoClient = require('mongodb').MongoClient;
const { REST } = require('@discordjs/rest');
@@ -132,10 +133,10 @@ class QuarksBot extends Client {
Channel.send(embed);
}
// Calls register for guild and global commands
RegisterSlashCommands() {
this.guilds.cache.forEach((guild) => {
require("../util/RegisterSlashCommands")(this, guild.id);
});
RegisterGlobalCommands(this);
this.guilds.cache.forEach((guild) => {RegisterGuildCommands(this, guild.id)});
}
async GetGuild(GuildId) {