diff --git a/locales/en/bot.json b/locales/en/bot.json index 9b66415..5e01da1 100644 --- a/locales/en/bot.json +++ b/locales/en/bot.json @@ -290,6 +290,12 @@ "durationLongerThanTrackDuration": "{{icon}} **Oops!**\nYou entered **`{{wrongDuration}}`**, which is a timestamp longer than the duration of the current track.\n\nPlease try a timestamp that is less than the duration of the track (**{{trackDuration}}**).", "seekingToTimestamp": "{{icon}} **Seeking to timestamp**\nSeeking to **`{{duration}}`** in current track." }, + "settings": { + "metadata": { + "name": "settings", + "description": "Configure various options for bot behavior in this server." + } + }, "shards": { "metadata": { "name": "shards", diff --git a/src/interactions/commands/config/settings.ts b/src/interactions/commands/config/settings.ts new file mode 100644 index 0000000..c667528 --- /dev/null +++ b/src/interactions/commands/config/settings.ts @@ -0,0 +1,24 @@ +import { EmbedBuilder, SlashCommandBuilder } from 'discord.js'; +import { BaseSlashCommandInteraction } from '../../../classes/interactions'; +import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes'; +import { localizeCommand } from '../../../common/localeUtil'; + +class SettingsCommand extends BaseSlashCommandInteraction { + constructor() { + const data = localizeCommand(new SlashCommandBuilder().setName('settings')); + super(data); + } + + async execute(params: BaseSlashCommandParams): BaseSlashCommandReturnType { + const { executionId, interaction } = params; + const logger = this.getLogger(this.name, executionId, interaction); + //const translator = useServerTranslator(interaction); + + logger.debug('Sending embed'); + return await interaction.editReply({ + embeds: [new EmbedBuilder().setDescription('Settings').setColor(this.embedOptions.colors.info)] + }); + } +} + +export default new SettingsCommand();