コード例 #1
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> Start() => DiscordResult.Async(_service.Start(Context.Channel as ITextChannel));
コード例 #2
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> Show() => DiscordResult.Async(_service.Show(Context.Channel as ITextChannel, Author));
コード例 #3
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> SetDuration(uint duration) =>
 DiscordResult.Async(_service.SetDuration(Context.Channel as ITextChannel, duration));
コード例 #4
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> Notify() => DiscordResult.Async(_service.Notify(Context.Channel as ITextChannel));
コード例 #5
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> GetDuration() => DiscordResult.Async(_service.ShowDuration(Context.Channel as ITextChannel));
コード例 #6
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> SetTopic([Remainder] string newTopic) =>
 DiscordResult.Async(_service.SetTopic(Context.Channel as ITextChannel, newTopic));
コード例 #7
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> GetTopic() => DiscordResult.Async(_service.ShowTopic(Context.Channel as ITextChannel));
コード例 #8
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> Clear() => DiscordResult.Async(_service.Clear(Context.Channel as ITextChannel));
コード例 #9
0
ファイル: Commands.cs プロジェクト: wallparty/derpy-cs
 public Task <RuntimeResult> New([Remainder] string topic = null) =>
 DiscordResult.Async(_service.New(Context.Channel, Author, topic ?? "Ponies!"));