update command descriptions and set logger name

This commit is contained in:
Marius Begby committed 2023-08-31 15:39:23 +02:00
1 parent 775d942e2d
commit ddeaf82c11
26 files changed
+209 -199

No files matched your search

+6 -3
View File
@@ -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;