示例#1
0
        private async Task ShowSetting(string settingName)
        {
            var value = await _guildService.GetGuildSettingValueAsString(Context.Guild, settingName);

            if (!value.Success)
            {
                await ReplyAsync(value.Message);
            }
            else
            {
                await ReplyAsync($"{Format.Sanitize(settingName)}: {value.Result ?? "null"}");
            }
        }