Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more automod audit log types + fields #189

Merged
merged 3 commits into from Sep 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 13 additions & 9 deletions discord/audit_log.go
Expand Up @@ -113,6 +113,8 @@ const (
AuditLogAutoModerationRuleUpdate
AuditLogAutoModerationRuleDelete
AuditLogAutoModerationBlockMessage
AuditLogAutoModerationFlagToChannel
AuditLogAutoModerationUserCommunicationDisabled
)

// AuditLog (https://discord.com/developers/docs/resources/audit-log) These are logs of events that occurred, accessible via the Discord
Expand Down Expand Up @@ -235,13 +237,15 @@ type AuditLogChangeKey struct {

// OptionalAuditLogEntryInfo (https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info)
type OptionalAuditLogEntryInfo struct {
DeleteMemberDays *string `json:"delete_member_days"`
MembersRemoved *string `json:"members_removed"`
ChannelID *snowflake.ID `json:"channel_id"`
MessageID *snowflake.ID `json:"message_id"`
Count *string `json:"count"`
ID *string `json:"id"`
Type *string `json:"type"`
RoleName *string `json:"role_name"`
ApplicationID *snowflake.ID `json:"application_id"`
DeleteMemberDays *string `json:"delete_member_days"`
MembersRemoved *string `json:"members_removed"`
ChannelID *snowflake.ID `json:"channel_id"`
MessageID *snowflake.ID `json:"message_id"`
Count *string `json:"count"`
ID *string `json:"id"`
Type *string `json:"type"`
RoleName *string `json:"role_name"`
ApplicationID *snowflake.ID `json:"application_id"`
AutoModerationRuleName *string `json:"auto_moderation_rule_name"`
AutoModerationRuleTriggerType *AutoModerationTriggerType `json:"auto_moderation_rule_trigger_type,string"`
}