diff --git a/src/lib/util/util.ts b/src/lib/util/util.ts index 357c0827..1fa38361 100644 --- a/src/lib/util/util.ts +++ b/src/lib/util/util.ts @@ -155,7 +155,7 @@ export enum WhitelistStatus { } /** - * Checks if a guild is whitelisted for a feature. + * Checks if a guild is whitelisted for a feature. Returns Permanent status if the feature does not have whitelist enabled. * @param guildId - The guild ID. * @param feature - The feature to check. * @returns Whether the guild is whitelisted. @@ -164,6 +164,7 @@ export async function getGuildFeatureWhitelisted( guildId: Snowflake, feature: WhitelistedFeatures, ): Promise { + if (!settings.features[feature].whitelist) return WhitelistStatus.Permanent; const whitelisted = await data.guild.get( guildId, `features.${feature}.whitelisted`,