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