Skip to content

Commit

Permalink
we'll do change sets
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Oct 17, 2023
1 parent 4129193 commit 9568f24
Show file tree
Hide file tree
Showing 65 changed files with 540 additions and 2 deletions.
1 change: 0 additions & 1 deletion DisCatSharp/DisCatSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Written with love and for everyone.
</ItemGroup>

<ItemGroup>
<Folder Include="Entities\Guild\AuditLog\Types\" />
<Folder Include="Entities\Interaction\Components\Attachment\" />
<Folder Include="Entities\Interaction\Components\DateTime\" />
<Folder Include="Entities\Interaction\Components\Radio\" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating permissions for an application command.
/// </summary>
public class ApplicationCommandPermissionUpdateChangeSet : AuditLogChangeSet
{
}
16 changes: 16 additions & 0 deletions DisCatSharp/Entities/Guild/AuditLog/ChangeSet/AuditLogChangeSet.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a dynamic change set.
/// </summary>
public class AuditLogChangeSet : DiscordAuditLogEntry
{
/// <summary>
/// Gets the change description.
/// </summary>
public string? ChangeDescription { get; internal set; } = null;

/// <inheritdoc />
public override string ToString()
=> this.ChangeDescription ?? $"{this.UserId} executed {this.GetType().Name}";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for a message being blocked by Auto Moderation.
/// </summary>
public class AutoModerationBlockMessageChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for a message being flagged by Auto Moderation.
/// </summary>
public class AutoModerationFlagToChannelChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for creating an Auto Moderation rule.
/// </summary>
public class AutoModerationRuleCreateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for deleting an Auto Moderation rule.
/// </summary>
public class AutoModerationRuleDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating an Auto Moderation rule.
/// </summary>
public class AutoModerationRuleUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for a member being timed out by Auto Moderation.
/// </summary>
public class AutoModerationUserCommunicationDisabledChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for adding a bot user to the server.
/// </summary>
public class BotAddChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for a new channel creation.
/// </summary>
public class ChannelCreateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for a channel deletion.
/// </summary>
public class ChannelDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for adding a permission overwrite to a channel.
/// </summary>
public class ChannelOverwriteCreateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for deleting a permission overwrite from a channel.
/// </summary>
public class ChannelOverwriteDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating a permission overwrite for a channel.
/// </summary>
public class ChannelOverwriteUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating channel settings.
/// </summary>
public class ChannelUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for the creation of a creator monetization request.
/// </summary>
public class CreatorMonetizationRequestCreatedChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for the acceptance of creator monetization terms.
/// </summary>
public class CreatorMonetizationTermsAcceptedChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for creating an emoji.
/// </summary>
public class EmojiCreateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for deleting an emoji.
/// </summary>
public class EmojiDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating the name of an emoji.
/// </summary>
public class EmojiUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for creating a guild scheduled event.
/// </summary>
public class GuildScheduledEventCreateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for cancelling a guild scheduled event.
/// </summary>
public class GuildScheduledEventDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating a guild scheduled event.
/// </summary>
public class GuildScheduledEventUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for a server settings update.
/// </summary>
public class GuildUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for adding an app to the server.
/// </summary>
public class IntegrationCreateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for removing an app from the server.
/// </summary>
public class IntegrationDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating an app, such as its scopes.
/// </summary>
public class IntegrationUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for creating a server invite.
/// </summary>
public class InviteCreateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for deleting a server invite.
/// </summary>
public class InviteDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating a server invite.
/// </summary>
public class InviteUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for banning a member from the server.
/// </summary>
public class MemberBanAddChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for lifting a server ban for a member.
/// </summary>
public class MemberBanRemoveChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for disconnecting a member from a voice channel.
/// </summary>
public class MemberDisconnectChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for removing a member from the server.
/// </summary>
public class MemberKickChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for moving a member to a different voice channel.
/// </summary>
public class MemberMoveChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for pruning members from the server.
/// </summary>
public class MemberPruneChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for adding or removing a role from a member.
/// </summary>
public class MemberRoleUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for updating a member in the server.
/// </summary>
public class MemberUpdateChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for deleting multiple messages.
/// </summary>
public class MessageBulkDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for deleting a single message.
/// </summary>
public class MessageDeleteChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for pinning a message to a channel.
/// </summary>
public class MessagePinChangeSet : AuditLogChangeSet
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace DisCatSharp.Entities.Guild.AuditLog;

/// <summary>
/// Represents a change set for unpinning a message from a channel.
/// </summary>
public class MessageUnpinChangeSet : AuditLogChangeSet
{
}
Loading

0 comments on commit 9568f24

Please sign in to comment.