예제 #1
0
 public static IMessageReference <IDiscordMessage> ThenEdit(
     this IMessageReference <IDiscordMessage> reference,
     string message     = "",
     DiscordEmbed embed = null)
 {
     reference.PushDecorator(x
                             => x.EditAsync(new EditMessageArgs(message, embed)));
     return(reference);
 }
예제 #2
0
 public static IMessageReference <T> Then <T>(this IMessageReference <T> reference, Func <T, Task> fn)
     where T : class
 {
     reference.PushDecorator(fn);
     return(reference);
 }
예제 #3
0
 public static IMessageReference <IDiscordMessage> ThenDelete(this IMessageReference <IDiscordMessage> reference)
 {
     reference.PushDecorator(async(msg) => { await msg.DeleteAsync(); });
     return(reference);
 }
예제 #4
0
 public static IMessageReference <T> ThenWait <T>(this IMessageReference <T> reference, int milliseconds)
     where T : class
 {
     reference.PushDecorator(_ => Task.Delay(milliseconds));
     return(reference);
 }