1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-30 02:59:54 +03:00

Fix issues caused by refactor

This commit is contained in:
Octol1ttle 2022-11-12 11:02:44 +05:00
parent 3b12fb7e41
commit 7dbc4472f7
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
8 changed files with 28 additions and 108 deletions

View file

@ -16,7 +16,7 @@ public sealed class SettingsCommand : ICommand {
foreach (var setting in Boyfriend.DefaultConfig) {
var format = "{0}";
var currentValue = config[setting.Key];
var currentValue = config[setting.Key] is "default" ? Messages.DefaultWelcomeMessage : config[setting.Key];
if (setting.Key.EndsWith("Channel")) {
if (guild.GetTextChannel(ulong.Parse(currentValue)) is not null) format = "<#{0}>";