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