Exemple #1
0
 private async Task OnGuildIntegrationsUpdated(GuildIntegrationsUpdateEventArgs e)
 {
     if (GuildIntegrationsUpdated != null)
     {
         await GuildIntegrationsUpdated(e);
     }
 }
Exemple #2
0
        private async Task IntegrationsUpdated(DiscordClient sender, GuildIntegrationsUpdateEventArgs e)
        {
            var intsEntry = await GetNewEntryAsync() as DiscordAuditLogIntegrationEntry;

            if (intsEntry == null)
            {
                return;
            }
            _entryBuilder = EmbedBuilderExtensions.CreateForAudit(intsEntry, "Обновление интеграций");
            _entryBuilder.SetDescription("Для более подробной информации обратитесь в журнал аудита");
            await SendMessageToAuditAsync(true, embed : _entryBuilder);
        }
Exemple #3
0
 private Task GuildIntegrationsUpdated(GuildIntegrationsUpdateEventArgs e)
 {
     /* This would kill my bot */
     return(Task.CompletedTask);
 }
Exemple #4
0
 private Task Client_GuildIntegrationsUpdated(GuildIntegrationsUpdateEventArgs e)
 {
     e.Client.DebugLogger.LogMessage(LogLevel.Info, "BotApp", e.ToString(), DateTime.Now);
     return(Task.CompletedTask);
 }
Exemple #5
0
        public static async Task GuildIntegrationsUpdateEventHandlerAsync(TheGodfatherShard shard, GuildIntegrationsUpdateEventArgs e)
        {
            DiscordChannel logchn = shard.SharedData.GetLogChannelForGuild(shard.Client, e.Guild);

            if (logchn == null)
            {
                return;
            }

            DiscordEmbedBuilder emb = FormEmbedBuilder(EventOrigin.Guild, "Guild integrations updated");

            await logchn.SendMessageAsync(embed : emb.Build());
        }
Exemple #6
0
 private Task OnGuildIntegrationUpdated(GuildIntegrationsUpdateEventArgs e)
 {
     Console.WriteLine($"[Discord] Guild integration updated (guild: {e.Guild.Id})", Color.DodgerBlue);
     return(Task.FromResult(0));
 }
Exemple #7
0
 private async Task GuildIntegrationsUpdated(DiscordClient c, GuildIntegrationsUpdateEventArgs e)
 {
     this.logger.Information($"Guild '{e.Guild.Name}' ({e.Guild.Id}) has updated their integrations.");
 }
Exemple #8
0
 private Task Event_GuildIntegrationsUpdated(DiscordClient d, GuildIntegrationsUpdateEventArgs e)
 {
     d.Logger.LogDebug(BotEventId, "Event_GuildIntegrationsUpdated.");
     return(Task.CompletedTask);
 }