コード例 #1
0
 public async Task ShowFeaturesAsync()
 {
     await GetDefaultBuilder()
     .WithDescription("Here's a list of available features!")
     .WithFields(CustomCommands.GetFeatureInfos()
                 .Select(f => new EmbedFieldBuilder().WithName(f.Name).WithValue(f.Summary.WithAlternative("No description provided."))))
     .Build()
     .SendToChannel(Context.Channel);
 }