diff --git a/src/commands/config/Language.ts b/src/commands/config/Language.ts index 856ce3b06..405e94b3e 100644 --- a/src/commands/config/Language.ts +++ b/src/commands/config/Language.ts @@ -7,7 +7,7 @@ export default class LanguageCommand extends Command { name: "language", description: { content: "cmd.language.description", - examples: ["language set en", "language reset"], + examples: ["language set \`EnglishUS\`", "language reset"], usage: "language", }, category: "general", diff --git a/src/events/client/InteractionCreate.ts b/src/events/client/InteractionCreate.ts index 4f2beaf03..80f5130fc 100644 --- a/src/events/client/InteractionCreate.ts +++ b/src/events/client/InteractionCreate.ts @@ -94,7 +94,7 @@ export default class InteractionCreate extends Event { if (!isDev) return; } } - if (command.vote) { + if (command.vote && this.client.config.topGG) { const voted = await this.client.topGG.hasVoted(interaction.user.id); if (!voted) { const voteBtn = new ActionRowBuilder().addComponents( diff --git a/src/events/client/MessageCreate.ts b/src/events/client/MessageCreate.ts index db74850df..aad8eba76 100644 --- a/src/events/client/MessageCreate.ts +++ b/src/events/client/MessageCreate.ts @@ -95,7 +95,7 @@ export default class MessageCreate extends Event { if (!isDev) return; } } - if (command.vote) { + if (command.vote && this.client.config.topGG) { const voted = await this.client.topGG.hasVoted(message.author.id); if (!voted) { const voteBtn = new ActionRowBuilder().addComponents(