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