reformat
This commit is contained in:
parent
7ea945b427
commit
99c1587e7b
12 changed files with 35 additions and 35 deletions
|
|
@ -7,7 +7,7 @@ namespace Catalogger.Backend.Bot;
|
|||
public static class DiscordUtils
|
||||
{
|
||||
public static readonly Snowflake PkUserId = DiscordSnowflake.New(466378653216014359);
|
||||
|
||||
|
||||
public static readonly Color Red = Color.FromArgb(231, 76, 60);
|
||||
public static readonly Color Purple = Color.FromArgb(155, 89, 182);
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@ public class GuildCreateResponder(
|
|||
await tx.CommitAsync(ct);
|
||||
|
||||
_logger.Information("Joined new guild {GuildName} / {GuildId}", guildName, guildId);
|
||||
|
||||
|
||||
if (config.Discord.GuildLogId != null && evt.Guild.IsT0)
|
||||
await webhookExecutor.QueueLogAsync(config.Discord.GuildLogId.Value, new EmbedBuilder()
|
||||
.WithTitle("Joined new guild")
|
||||
|
|
@ -83,9 +83,9 @@ public class GuildCreateResponder(
|
|||
_logger.Information("Left uncached guild {GuildId}", evt.ID);
|
||||
return Result.Success;
|
||||
}
|
||||
|
||||
|
||||
_logger.Information("Left guild {GuildName} / {GuildId}", guild.Name, guild.ID);
|
||||
|
||||
|
||||
if (config.Discord.GuildLogId != null)
|
||||
await webhookExecutor.QueueLogAsync(config.Discord.GuildLogId.Value, new EmbedBuilder()
|
||||
.WithTitle("Left guild")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue