public async Task SetGameConfigAsync(SocketCommandContext context, string key, string value) { var game = context.GetGame(); if (game.Owner.Id != context.User.Id) { await context.Channel.SendMessageAsync( $"Sorry, but only game's owner **{game.Owner.Username}** can change config"); return; } var result = game.Config.Set(key, value); if (result.IsFail) { await context.Channel.SendMessageAsync(result.Message); } else { await SendGameConfigAsync(game); } }