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:
parent
3b12fb7e41
commit
7dbc4472f7
8 changed files with 28 additions and 108 deletions
|
@ -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}>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue