private async Task OnGuildIntegrationsUpdated(GuildIntegrationsUpdateEventArgs e) { if (GuildIntegrationsUpdated != null) { await GuildIntegrationsUpdated(e); } }
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); }
private Task GuildIntegrationsUpdated(GuildIntegrationsUpdateEventArgs e) { /* This would kill my bot */ return(Task.CompletedTask); }
private Task Client_GuildIntegrationsUpdated(GuildIntegrationsUpdateEventArgs e) { e.Client.DebugLogger.LogMessage(LogLevel.Info, "BotApp", e.ToString(), DateTime.Now); return(Task.CompletedTask); }
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()); }
private Task OnGuildIntegrationUpdated(GuildIntegrationsUpdateEventArgs e) { Console.WriteLine($"[Discord] Guild integration updated (guild: {e.Guild.Id})", Color.DodgerBlue); return(Task.FromResult(0)); }
private async Task GuildIntegrationsUpdated(DiscordClient c, GuildIntegrationsUpdateEventArgs e) { this.logger.Information($"Guild '{e.Guild.Name}' ({e.Guild.Id}) has updated their integrations."); }
private Task Event_GuildIntegrationsUpdated(DiscordClient d, GuildIntegrationsUpdateEventArgs e) { d.Logger.LogDebug(BotEventId, "Event_GuildIntegrationsUpdated."); return(Task.CompletedTask); }