Exemplo n.º 1
0
 public DonorService(DiscordShardedClient client, PartnerBotConfiguration pcfg,
                     DiscordRestClient rest)
 {
     this._client = client;
     this._pcfg   = pcfg;
     this._rest   = rest;
 }
Exemplo n.º 2
0
 public CommandHandlingService(DiscordShardedClient client, CommandErrorHandlingService error,
                               PartnerBotConfiguration pcfg, IServiceProvider services)
 {
     this._logger   = client.Logger;
     this._error    = error;
     this._pcfg     = pcfg;
     this._services = services;
 }
Exemplo n.º 3
0
        public DiscordBot(PartnerSenderService partnerSender,
                          DiscordShardedClient client, DiscordRestClient rest,
                          CommandErrorHandlingService error, CommandHandlingService command,
                          GuildVerificationService verify, PartnerBotConfiguration pcfg,
                          IServiceProvider serviceProvider)
        {
            this._partnerSender   = partnerSender;
            this._client          = client;
            this._rest            = rest;
            this._error           = error;
            this._command         = command;
            this._verify          = verify;
            this._serviceProvider = serviceProvider;

            Client   = this._client;
            PbCfg    = pcfg;
            Services = this._serviceProvider;
        }
Exemplo n.º 4
0
 public InviteCommand(PartnerBotConfiguration config, DiscordShardedClient client)
 {
     this._client = client;
     this._config = config;
 }
 public RequireCessumOwnerAttribute()
 {
     this._pcfg = DiscordBot.PbCfg ?? new("", "pb!", new(), new(), 0, new(), Permissions.None, "", 1);
 }