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); }
public static IMessageReference <T> Then <T>(this IMessageReference <T> reference, Func <T, Task> fn) where T : class { reference.PushDecorator(fn); return(reference); }
public static IMessageReference <IDiscordMessage> ThenDelete(this IMessageReference <IDiscordMessage> reference) { reference.PushDecorator(async(msg) => { await msg.DeleteAsync(); }); return(reference); }
public static IMessageReference <T> ThenWait <T>(this IMessageReference <T> reference, int milliseconds) where T : class { reference.PushDecorator(_ => Task.Delay(milliseconds)); return(reference); }