diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands/config.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/config.ts b/src/commands/config.ts index ae3bc45..7f25a2e 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -38,6 +38,9 @@ export default class implements Command { .setDescription('show all settings')); async execute(interaction: ChatInputCommandInteraction) { + // Ensure guild settings exist before trying to update + await getGuildSettings(interaction.guild!.id); + switch (interaction.options.getSubcommand()) { case 'set-playlist-limit': { const limit: number = interaction.options.getInteger('limit')!; |
