mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
update command descriptions and set logger name
This commit is contained in:
1 parent
775d942e2d
commit
ddeaf82c11
26 files changed
+209
-199
No files matched your search
@@ -9,13 +9,16 @@ import { notValidGuildId } from '../../../utils/validation/systemCommandValidato
|
||||
|
||||
class ReloadCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
const data = new SlashCommandBuilder().setName('reload').setDescription('Reload the bot commands.');
|
||||
super(data);
|
||||
const data = new SlashCommandBuilder()
|
||||
.setName('reload')
|
||||
.setDescription('Reload all slash commands across shards.');
|
||||
const isSystemCommand: boolean = true;
|
||||
super(data, isSystemCommand);
|
||||
}
|
||||
|
||||
async execute(params: BaseSlashCommandParams): BaseSlashCommandReturnType {
|
||||
const { executionId, interaction, client } = params;
|
||||
const logger = this.getLogger(this.commandName, executionId, interaction);
|
||||
const logger = this.getLogger(this.name, executionId, interaction);
|
||||
|
||||
if (await notValidGuildId({ interaction, executionId })) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user