Feature/6 add a way to view current settings #9

Merged
AstroGD merged 2 commits from feature/6-add-a-way-to-view-current-settings into dev 2022-11-25 19:37:49 +01:00
Showing only changes of commit 005b9bd69c - Show all commits

View File

@ -28,7 +28,7 @@ async function execute(interaction: ChatInputCommandInteraction): Promise<void>
const embed = getDefaultEmbed();
embed.setTitle(`Settings from guild ${interaction.guild?.name || ""} (${interaction.guildId})`);
embed.setDescription(isPremium ? `${Emoji.PREMIUM} your subscription ends in ${moment(settings.isPremiumUntil).fromNow(true)}` : `Consider Premium status to get an increased blocklist`);
embed.setColor(Color.INFORMING_BLUE);
embed.setColor(isPremium ? Color.PREMIUM_ORANGE : Color.INFORMING_BLUE);
embed.addFields({
name: "Premium",
value: isPremium ? `${Emoji.PREMIUM} active` : `${Emoji.SWITCH_OFF} inactive`,