From 7be72df267db3b50c48a2f5708dcc78b44d9e081 Mon Sep 17 00:00:00 2001 From: Lukas | AstroGD Date: Thu, 24 Nov 2022 22:52:29 +0100 Subject: [PATCH] Add settings emojis --- src/commands/notification.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/notification.ts b/src/commands/notification.ts index 4b4c2a5..edf73c7 100644 --- a/src/commands/notification.ts +++ b/src/commands/notification.ts @@ -3,6 +3,7 @@ import getDefaultEmbed, { getSuccessEmbed } from "../tools/defaultEmbeds"; import { database, GuildSetting } from "../data"; import { getGuildSetting } from "../tools/data"; import { getGuildChannel } from "../tools/discord"; +import { Emoji } from "../tools/design"; const builder = new SlashCommandBuilder(); builder.setName("logchannel"); @@ -57,7 +58,7 @@ const execute = async (interaction: ChatInputCommandInteraction) => { if (guildSetting.notificationChannelID) { const oldLogChannel = await getGuildChannel(guildSetting.id, guildSetting.notificationChannelID); const embed = getDefaultEmbed(); - embed.setTitle("Settings changed"); + embed.setTitle(`${Emoji.SETTINGS} Settings changed`); embed.setDescription(`Log channel has been switched to <#${channel.id}>`); embed.addFields({ name: "This action was performed by", @@ -75,7 +76,7 @@ const execute = async (interaction: ChatInputCommandInteraction) => { await database.getRepository(GuildSetting).save(guildSetting); const embed = getDefaultEmbed(); - embed.setTitle("Settings changed"); + embed.setTitle(`${Emoji.SETTINGS} Settings changed`); embed.setDescription("This channel has been set as the log channel"); embed.addFields({ name: "This action was performed by",