convert some commands to global commands
This commit is contained in:
19 files changed
+72
-24
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user