From 14ebcb1f1c563bf9424677e7da709189586c4a6a Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 13 Nov 2022 17:40:46 +0300 Subject: [PATCH] Fix some messages not being formatted --- Boyfriend/EventHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Boyfriend/EventHandler.cs b/Boyfriend/EventHandler.cs index be3ff2a..3f89d7c 100644 --- a/Boyfriend/EventHandler.cs +++ b/Boyfriend/EventHandler.cs @@ -97,9 +97,9 @@ public static class EventHandler { if (config["SendWelcomeMessages"] is "true") await Utils.SilentSendAsync(guild.SystemChannel, - config["WelcomeMessage"] is "default" + string.Format(config["WelcomeMessage"] is "default" ? Messages.DefaultWelcomeMessage - : string.Format(config["WelcomeMessage"], user.Mention, guild.Name)); + : config["WelcomeMessage"], user.Mention, guild.Name)); if (config["StarterRole"] is not "0") await user.AddRoleAsync(ulong.Parse(config["StarterRole"])); } @@ -113,7 +113,7 @@ public static class EventHandler { var role = guild.GetRole(ulong.Parse(eventConfig["EventNotificationRole"])); var mentions = role is not null ? $"{role.Mention} {scheduledEvent.Creator.Mention}" - : "{scheduledEvent.Creator.Mention}"; + : $"{scheduledEvent.Creator.Mention}"; var location = Utils.Wrap(scheduledEvent.Location) ?? Utils.MentionChannel(scheduledEvent.Channel.Id); var descAndLink