initial commit - base code
This commit is contained in:
15 files changed
+2257
No files matched your search
@@ -0,0 +1,3 @@
|
||||
module.exports = (client, guild) => {
|
||||
require("../util/RegisterSlashCommands").RegisterGuildCommands(client, guild.id);
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
module.exports = async (client, interaction) => {
|
||||
if (interaction.isCommand()) return;
|
||||
/*
|
||||
This file handles all menu and button interactions
|
||||
from any command
|
||||
*/
|
||||
|
||||
let GuildDB = await client.GetGuild(interaction.guildId);
|
||||
const interactionName = interaction.customId.split("-")[0];
|
||||
let interactionHandler = client.interactionHandlers.get(interactionName);
|
||||
|
||||
try {
|
||||
interactionHandler.run(client, interaction, GuildDB);
|
||||
} catch (err) {
|
||||
client.sendInternalError(interaction, err);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
module.exports = async (client) => {
|
||||
(client.Ready = true),
|
||||
client.user.setActivity(
|
||||
client.config.Presence.name,
|
||||
client.config.Presence.type
|
||||
);
|
||||
client.log(`Successfully Logged in as ${client.user.tag}`);
|
||||
client.log(`Ready to serve in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`)
|
||||
client.RegisterSlashCommands();
|
||||
};
|
||||
Reference in new issue
Block a user