Example #1
0
 public Task <RuntimeResult> Start() => DiscordResult.Async(_service.Start(Context.Channel as ITextChannel));
Example #2
0
 public Task <RuntimeResult> Show() => DiscordResult.Async(_service.Show(Context.Channel as ITextChannel, Author));
Example #3
0
 public Task <RuntimeResult> SetDuration(uint duration) =>
 DiscordResult.Async(_service.SetDuration(Context.Channel as ITextChannel, duration));
Example #4
0
 public Task <RuntimeResult> Notify() => DiscordResult.Async(_service.Notify(Context.Channel as ITextChannel));
Example #5
0
 public Task <RuntimeResult> GetDuration() => DiscordResult.Async(_service.ShowDuration(Context.Channel as ITextChannel));
Example #6
0
 public Task <RuntimeResult> SetTopic([Remainder] string newTopic) =>
 DiscordResult.Async(_service.SetTopic(Context.Channel as ITextChannel, newTopic));
Example #7
0
 public Task <RuntimeResult> GetTopic() => DiscordResult.Async(_service.ShowTopic(Context.Channel as ITextChannel));
Example #8
0
 public Task <RuntimeResult> Clear() => DiscordResult.Async(_service.Clear(Context.Channel as ITextChannel));
Example #9
0
 public Task <RuntimeResult> New([Remainder] string topic = null) =>
 DiscordResult.Async(_service.New(Context.Channel, Author, topic ?? "Ponies!"));