mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:09:00 +03:00
Fix some messages not being formatted
This commit is contained in:
parent
7dbc4472f7
commit
14ebcb1f1c
1 changed files with 3 additions and 3 deletions
|
@ -97,9 +97,9 @@ public static class EventHandler {
|
||||||
|
|
||||||
if (config["SendWelcomeMessages"] is "true")
|
if (config["SendWelcomeMessages"] is "true")
|
||||||
await Utils.SilentSendAsync(guild.SystemChannel,
|
await Utils.SilentSendAsync(guild.SystemChannel,
|
||||||
config["WelcomeMessage"] is "default"
|
string.Format(config["WelcomeMessage"] is "default"
|
||||||
? Messages.DefaultWelcomeMessage
|
? 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"]));
|
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 role = guild.GetRole(ulong.Parse(eventConfig["EventNotificationRole"]));
|
||||||
var mentions = role is not null
|
var mentions = role is not null
|
||||||
? $"{role.Mention} {scheduledEvent.Creator.Mention}"
|
? $"{role.Mention} {scheduledEvent.Creator.Mention}"
|
||||||
: "{scheduledEvent.Creator.Mention}";
|
: $"{scheduledEvent.Creator.Mention}";
|
||||||
|
|
||||||
var location = Utils.Wrap(scheduledEvent.Location) ?? Utils.MentionChannel(scheduledEvent.Channel.Id);
|
var location = Utils.Wrap(scheduledEvent.Location) ?? Utils.MentionChannel(scheduledEvent.Channel.Id);
|
||||||
var descAndLink
|
var descAndLink
|
||||||
|
|
Loading…
Reference in a new issue