diff --git a/src/Commands/SlashCommands/settings/afk.ts b/src/Commands/SlashCommands/settings/afk.ts index 49e58d59..119576b1 100644 --- a/src/Commands/SlashCommands/settings/afk.ts +++ b/src/Commands/SlashCommands/settings/afk.ts @@ -7,7 +7,7 @@ const name = CT.SettingNames.Afk; export default async (cmd: Discord.ChatInputCommandInteraction) => { if (!cmd.inCachedGuild()) return; - const language = await client.util.getLanguage(cmd.guild?.id); + const language = await client.util.getLanguage(cmd.guild.id); const lan = language.slashCommands.settings.categories[name]; const { embedParsers, buttonParsers } = client.util.settingsHelpers; const settings = await client.util.DataBase[CT.SettingsName2TableName[name]]