From 9568f24219ca23e40c6c04b59ae2d960aa23c0c0 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 17 Oct 2023 11:59:52 +0200 Subject: [PATCH] we'll do change sets --- DisCatSharp/DisCatSharp.csproj | 1 - ...icationCommandPermissionUpdateChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/AuditLogChangeSet.cs | 16 ++++++++++ .../AutoModerationBlockMessageChangeSet.cs | 8 +++++ .../AutoModerationFlagToChannelChangeSet.cs | 8 +++++ .../AutoModerationRuleCreateChangeSet.cs | 8 +++++ .../AutoModerationRuleDeleteChangeSet.cs | 8 +++++ .../AutoModerationRuleUpdateChangeSet.cs | 8 +++++ ...ationUserCommunicationDisabledChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/BotAddChangeSet.cs | 8 +++++ .../ChangeSet/ChannelCreateChangeSet.cs | 8 +++++ .../ChangeSet/ChannelDeleteChangeSet.cs | 8 +++++ .../ChannelOverwriteCreateChangeSet.cs | 8 +++++ .../ChannelOverwriteDeleteChangeSet.cs | 8 +++++ .../ChannelOverwriteUpdateChangeSet.cs | 8 +++++ .../ChangeSet/ChannelUpdateChangeSet.cs | 8 +++++ ...atorMonetizationRequestCreatedChangeSet.cs | 8 +++++ ...eatorMonetizationTermsAcceptedChangeSet.cs | 8 +++++ .../ChangeSet/EmojiCreateChangeSet.cs | 8 +++++ .../ChangeSet/EmojiDeleteChangeSet.cs | 8 +++++ .../ChangeSet/EmojiUpdateChangeSet.cs | 8 +++++ .../GuildScheduledEventCreateChangeSet.cs | 8 +++++ .../GuildScheduledEventDeleteChangeSet.cs | 8 +++++ .../GuildScheduledEventUpdateChangeSet.cs | 8 +++++ .../ChangeSet/GuildUpdateChangeSet.cs | 8 +++++ .../ChangeSet/IntegrationCreateChangeSet.cs | 8 +++++ .../ChangeSet/IntegrationDeleteChangeSet.cs | 8 +++++ .../ChangeSet/IntegrationUpdateChangeSet.cs | 8 +++++ .../ChangeSet/InviteCreateChangeSet.cs | 8 +++++ .../ChangeSet/InviteDeleteChangeSet.cs | 8 +++++ .../ChangeSet/InviteUpdateChangeSet.cs | 8 +++++ .../ChangeSet/MemberBanAddChangeSet.cs | 8 +++++ .../ChangeSet/MemberBanRemoveChangeSet.cs | 8 +++++ .../ChangeSet/MemberDisconnectChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/MemberKickChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/MemberMoveChangeSet.cs | 8 +++++ .../ChangeSet/MemberPruneChangeSet.cs | 8 +++++ .../ChangeSet/MemberRoleUpdateChangeSet.cs | 8 +++++ .../ChangeSet/MemberUpdateChangeSet.cs | 8 +++++ .../ChangeSet/MessageBulkDeleteChangeSet.cs | 8 +++++ .../ChangeSet/MessageDeleteChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/MessagePinChangeSet.cs | 8 +++++ .../ChangeSet/MessageUnpinChangeSet.cs | 8 +++++ .../OnboardingQuestionCreateChangeSet.cs | 8 +++++ .../OnboardingQuestionUpdateChangeSet.cs | 8 +++++ .../ChangeSet/OnboardingUpdateChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/RoleCreateChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/RoleDeleteChangeSet.cs | 8 +++++ .../AuditLog/ChangeSet/RoleUpdateChangeSet.cs | 8 +++++ .../ChangeSet/ServerGuideCreateChangeSet.cs | 8 +++++ .../ChangeSet/ServerGuideUpdateChangeSet.cs | 8 +++++ .../ChangeSet/StageInstanceCreateChangeSet.cs | 8 +++++ .../ChangeSet/StageInstanceDeleteChangeSet.cs | 8 +++++ .../ChangeSet/StageInstanceUpdateChangeSet.cs | 8 +++++ .../ChangeSet/StickerCreateChangeSet.cs | 8 +++++ .../ChangeSet/StickerDeleteChangeSet.cs | 8 +++++ .../ChangeSet/StickerUpdateChangeSet.cs | 8 +++++ .../ChangeSet/ThreadCreateChangeSet.cs | 8 +++++ .../ChangeSet/ThreadDeleteChangeSet.cs | 8 +++++ .../ChangeSet/ThreadUpdateChangeSet.cs | 8 +++++ .../VoiceChannelStatusUpdateChangeSet.cs | 8 +++++ .../ChangeSet/WebhookCreateChangeSet.cs | 8 +++++ .../ChangeSet/WebhookDeleteChangeSet.cs | 8 +++++ .../ChangeSet/WebhookUpdateChangeSet.cs | 8 +++++ .../Guild/AuditLog/DiscordAuditLogEntry.cs | 29 ++++++++++++++++++- 65 files changed, 540 insertions(+), 2 deletions(-) create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ApplicationCommandPermissionUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AuditLogChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationBlockMessageChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationFlagToChannelChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationUserCommunicationDisabledChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/BotAddChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationRequestCreatedChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationTermsAcceptedChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanAddChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanRemoveChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberDisconnectChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberKickChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberMoveChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberPruneChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberRoleUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageBulkDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessagePinChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageUnpinChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/VoiceChannelStatusUpdateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookCreateChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookDeleteChangeSet.cs create mode 100644 DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookUpdateChangeSet.cs diff --git a/DisCatSharp/DisCatSharp.csproj b/DisCatSharp/DisCatSharp.csproj index 3ffbf01cd1..742e9742d6 100644 --- a/DisCatSharp/DisCatSharp.csproj +++ b/DisCatSharp/DisCatSharp.csproj @@ -51,7 +51,6 @@ Written with love and for everyone. - diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ApplicationCommandPermissionUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ApplicationCommandPermissionUpdateChangeSet.cs new file mode 100644 index 0000000000..5be2760268 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ApplicationCommandPermissionUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating permissions for an application command. +/// +public class ApplicationCommandPermissionUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AuditLogChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AuditLogChangeSet.cs new file mode 100644 index 0000000000..ad5dd3a466 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AuditLogChangeSet.cs @@ -0,0 +1,16 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a dynamic change set. +/// +public class AuditLogChangeSet : DiscordAuditLogEntry +{ + /// + /// Gets the change description. + /// + public string? ChangeDescription { get; internal set; } = null; + + /// + public override string ToString() + => this.ChangeDescription ?? $"{this.UserId} executed {this.GetType().Name}"; +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationBlockMessageChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationBlockMessageChangeSet.cs new file mode 100644 index 0000000000..bbb66cf452 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationBlockMessageChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for a message being blocked by Auto Moderation. +/// +public class AutoModerationBlockMessageChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationFlagToChannelChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationFlagToChannelChangeSet.cs new file mode 100644 index 0000000000..44197a8a7d --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationFlagToChannelChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for a message being flagged by Auto Moderation. +/// +public class AutoModerationFlagToChannelChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleCreateChangeSet.cs new file mode 100644 index 0000000000..c9f7c83f3c --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating an Auto Moderation rule. +/// +public class AutoModerationRuleCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleDeleteChangeSet.cs new file mode 100644 index 0000000000..74571384cf --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting an Auto Moderation rule. +/// +public class AutoModerationRuleDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleUpdateChangeSet.cs new file mode 100644 index 0000000000..24e4b8bea2 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationRuleUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating an Auto Moderation rule. +/// +public class AutoModerationRuleUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationUserCommunicationDisabledChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationUserCommunicationDisabledChangeSet.cs new file mode 100644 index 0000000000..1adde635af --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AutoModerationUserCommunicationDisabledChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for a member being timed out by Auto Moderation. +/// +public class AutoModerationUserCommunicationDisabledChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/BotAddChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/BotAddChangeSet.cs new file mode 100644 index 0000000000..932051f8b7 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/BotAddChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for adding a bot user to the server. +/// +public class BotAddChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelCreateChangeSet.cs new file mode 100644 index 0000000000..6f2c0b3f65 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for a new channel creation. +/// +public class ChannelCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelDeleteChangeSet.cs new file mode 100644 index 0000000000..b9099b89a9 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for a channel deletion. +/// +public class ChannelDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteCreateChangeSet.cs new file mode 100644 index 0000000000..2a126cf652 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for adding a permission overwrite to a channel. +/// +public class ChannelOverwriteCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteDeleteChangeSet.cs new file mode 100644 index 0000000000..42c8c9f2bf --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a permission overwrite from a channel. +/// +public class ChannelOverwriteDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteUpdateChangeSet.cs new file mode 100644 index 0000000000..1d61d73ae0 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelOverwriteUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating a permission overwrite for a channel. +/// +public class ChannelOverwriteUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelUpdateChangeSet.cs new file mode 100644 index 0000000000..dcbf81fe51 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ChannelUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating channel settings. +/// +public class ChannelUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationRequestCreatedChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationRequestCreatedChangeSet.cs new file mode 100644 index 0000000000..53baaf1acf --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationRequestCreatedChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for the creation of a creator monetization request. +/// +public class CreatorMonetizationRequestCreatedChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationTermsAcceptedChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationTermsAcceptedChangeSet.cs new file mode 100644 index 0000000000..9a16ea3b97 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/CreatorMonetizationTermsAcceptedChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for the acceptance of creator monetization terms. +/// +public class CreatorMonetizationTermsAcceptedChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiCreateChangeSet.cs new file mode 100644 index 0000000000..fba568902a --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating an emoji. +/// +public class EmojiCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiDeleteChangeSet.cs new file mode 100644 index 0000000000..6f600b1570 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting an emoji. +/// +public class EmojiDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiUpdateChangeSet.cs new file mode 100644 index 0000000000..5c57d94058 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/EmojiUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating the name of an emoji. +/// +public class EmojiUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventCreateChangeSet.cs new file mode 100644 index 0000000000..a164659f40 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a guild scheduled event. +/// +public class GuildScheduledEventCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventDeleteChangeSet.cs new file mode 100644 index 0000000000..25cf7a3181 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for cancelling a guild scheduled event. +/// +public class GuildScheduledEventDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventUpdateChangeSet.cs new file mode 100644 index 0000000000..6a170e2126 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildScheduledEventUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating a guild scheduled event. +/// +public class GuildScheduledEventUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildUpdateChangeSet.cs new file mode 100644 index 0000000000..38c1047c63 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/GuildUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for a server settings update. +/// +public class GuildUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationCreateChangeSet.cs new file mode 100644 index 0000000000..58600e0a0f --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for adding an app to the server. +/// +public class IntegrationCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationDeleteChangeSet.cs new file mode 100644 index 0000000000..c81ce92a51 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for removing an app from the server. +/// +public class IntegrationDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationUpdateChangeSet.cs new file mode 100644 index 0000000000..9bc6bc2e2a --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/IntegrationUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating an app, such as its scopes. +/// +public class IntegrationUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteCreateChangeSet.cs new file mode 100644 index 0000000000..aef2b4bafa --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a server invite. +/// +public class InviteCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteDeleteChangeSet.cs new file mode 100644 index 0000000000..20b19e616b --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a server invite. +/// +public class InviteDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteUpdateChangeSet.cs new file mode 100644 index 0000000000..148f539abd --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/InviteUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating a server invite. +/// +public class InviteUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanAddChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanAddChangeSet.cs new file mode 100644 index 0000000000..33f9a7bf98 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanAddChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for banning a member from the server. +/// +public class MemberBanAddChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanRemoveChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanRemoveChangeSet.cs new file mode 100644 index 0000000000..fd26627bda --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberBanRemoveChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for lifting a server ban for a member. +/// +public class MemberBanRemoveChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberDisconnectChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberDisconnectChangeSet.cs new file mode 100644 index 0000000000..6f1c0ee825 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberDisconnectChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for disconnecting a member from a voice channel. +/// +public class MemberDisconnectChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberKickChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberKickChangeSet.cs new file mode 100644 index 0000000000..3c570f1982 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberKickChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for removing a member from the server. +/// +public class MemberKickChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberMoveChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberMoveChangeSet.cs new file mode 100644 index 0000000000..da06ec94b0 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberMoveChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for moving a member to a different voice channel. +/// +public class MemberMoveChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberPruneChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberPruneChangeSet.cs new file mode 100644 index 0000000000..d162ffcb21 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberPruneChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for pruning members from the server. +/// +public class MemberPruneChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberRoleUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberRoleUpdateChangeSet.cs new file mode 100644 index 0000000000..2d650450a7 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberRoleUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for adding or removing a role from a member. +/// +public class MemberRoleUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberUpdateChangeSet.cs new file mode 100644 index 0000000000..65fce6308d --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MemberUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating a member in the server. +/// +public class MemberUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageBulkDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageBulkDeleteChangeSet.cs new file mode 100644 index 0000000000..118d2c0935 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageBulkDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting multiple messages. +/// +public class MessageBulkDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageDeleteChangeSet.cs new file mode 100644 index 0000000000..86fbc90dec --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a single message. +/// +public class MessageDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessagePinChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessagePinChangeSet.cs new file mode 100644 index 0000000000..e37d243217 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessagePinChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for pinning a message to a channel. +/// +public class MessagePinChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageUnpinChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageUnpinChangeSet.cs new file mode 100644 index 0000000000..37aa9f21a8 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/MessageUnpinChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for unpinning a message from a channel. +/// +public class MessageUnpinChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionCreateChangeSet.cs new file mode 100644 index 0000000000..c2744fd362 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating an onboarding question. +/// +public class OnboardingQuestionCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionUpdateChangeSet.cs new file mode 100644 index 0000000000..b9e67fb88e --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingQuestionUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating an onboarding question. +/// +public class OnboardingQuestionUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingUpdateChangeSet.cs new file mode 100644 index 0000000000..7480fb8d1e --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/OnboardingUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating onboarding settings. +/// +public class OnboardingUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleCreateChangeSet.cs new file mode 100644 index 0000000000..56c4a7baae --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a role. +/// +public class RoleCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleDeleteChangeSet.cs new file mode 100644 index 0000000000..1a5bcd8a12 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a role. +/// +public class RoleDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleUpdateChangeSet.cs new file mode 100644 index 0000000000..d1614490c0 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/RoleUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for editing a role. +/// +public class RoleUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideCreateChangeSet.cs new file mode 100644 index 0000000000..8ba0c93723 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a server guide. +/// +public class ServerGuideCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideUpdateChangeSet.cs new file mode 100644 index 0000000000..09478dd7a1 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ServerGuideUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating a server guide. +/// +public class ServerGuideUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceCreateChangeSet.cs new file mode 100644 index 0000000000..a5333f38b8 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a stage instance, making a stage channel live. +/// +public class StageInstanceCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceDeleteChangeSet.cs new file mode 100644 index 0000000000..1b596ba4e6 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a stage instance, ending a live stage channel. +/// +public class StageInstanceDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceUpdateChangeSet.cs new file mode 100644 index 0000000000..70386cd0d2 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StageInstanceUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating stage instance details. +/// +public class StageInstanceUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerCreateChangeSet.cs new file mode 100644 index 0000000000..4edd4b3628 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a sticker. +/// +public class StickerCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerDeleteChangeSet.cs new file mode 100644 index 0000000000..56182d0a2e --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a sticker. +/// +public class StickerDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerUpdateChangeSet.cs new file mode 100644 index 0000000000..d4bbd13bef --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/StickerUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating sticker details. +/// +public class StickerUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadCreateChangeSet.cs new file mode 100644 index 0000000000..6cdcc7da71 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a thread in a channel. +/// +public class ThreadCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadDeleteChangeSet.cs new file mode 100644 index 0000000000..fdbc7c9c58 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a thread. +/// +public class ThreadDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadUpdateChangeSet.cs new file mode 100644 index 0000000000..81de104712 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/ThreadUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating a thread. +/// +public class ThreadUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/VoiceChannelStatusUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/VoiceChannelStatusUpdateChangeSet.cs new file mode 100644 index 0000000000..086852a149 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/VoiceChannelStatusUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating voice channel status. +/// +public class VoiceChannelStatusUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookCreateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookCreateChangeSet.cs new file mode 100644 index 0000000000..5bd30efcfa --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookCreateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for creating a webhook. +/// +public class WebhookCreateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookDeleteChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookDeleteChangeSet.cs new file mode 100644 index 0000000000..4c3c0f8323 --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookDeleteChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for deleting a webhook. +/// +public class WebhookDeleteChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookUpdateChangeSet.cs b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookUpdateChangeSet.cs new file mode 100644 index 0000000000..a7e5ca9c5b --- /dev/null +++ b/DisCatSharp/Entities/Guild/AuditLog/ChangeSet/WebhookUpdateChangeSet.cs @@ -0,0 +1,8 @@ +namespace DisCatSharp.Entities.Guild.AuditLog; + +/// +/// Represents a change set for updating a webhook or its properties. +/// +public class WebhookUpdateChangeSet : AuditLogChangeSet +{ +} diff --git a/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs b/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs index 5af41facc7..ba62f2ee6f 100644 --- a/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs +++ b/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs @@ -9,23 +9,50 @@ namespace DisCatSharp.Entities.Guild.AuditLog; /// /// Represents a Discord audit log entry. /// -public sealed class DiscordAuditLogEntry : SnowflakeObject +public class DiscordAuditLogEntry : SnowflakeObject { + /// + /// Gets the ID of the affected entity (webhook, user, role, etc.). + /// [JsonProperty("target_id", NullValueHandling = NullValueHandling.Ignore)] public SnowflakeObject? TargetId { get; internal set; } + /// + /// Gets the list of changes made to the target_id. + /// [JsonProperty("changes", NullValueHandling = NullValueHandling.Ignore)] public List Changes { get; internal set; } = new(); + /// + /// Gets the ID of the user or app that made the changes. + /// [JsonProperty("user_id", NullValueHandling = NullValueHandling.Ignore)] public ulong? UserId { get; internal set; } + /// + /// Gets the type of action that occurred in the audit log entry. + /// [JsonProperty("action_type", NullValueHandling = NullValueHandling.Ignore)] public AuditLogActionType ActionType { get; internal set; } + /// + /// Gets additional information for certain event types. + /// [JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)] public DiscordAuditEntryInfo? Options { get; internal set; } + /// + /// Gets the reason for the change (1-512 characters). + /// [JsonProperty("reason", NullValueHandling = NullValueHandling.Ignore)] public string? Reason { get; internal set; } + + /// + /// Gets this as an easy to-use with the given type. + /// + /// The type to convert to. Use the type based on the . + /// The easy to-use audit log entry. + public T? As() + where T : AuditLogChangeSet + => this as T; }