コード例 #1
0
 public ExpletiveCommand()
 {
     _crypter              = new Crypter();
     _members              = Program.Discord.GetGuildAsync(GuildConfiguration.Id).GetAwaiter().GetResult().Members;
     _lastUseTime          = new Dictionary <ulong, DateTime>();
     _timeLimitSecs        = 30;
     _expletiveCommandText = CommandConfiguration.GetCommandText <ExpletiveCommand>();
 }
コード例 #2
0
 public DocumentationCommand()
 {
     _pingText = CommandConfiguration.GetCommandText <PingCommand>();
     _voteText = CommandConfiguration.GetCommandText <VoteCommand>();
 }
コード例 #3
0
 public VoteCommand()
 {
     _voteCommandText = CommandConfiguration.GetCommandText <VoteCommand>();
 }