Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEntryInfo ¶
type AuditEntryInfo struct { DeleteMemberDays int `json:"delete_member_days,string"` // MEMBER_PRUNE MembersRemoved int `json:"members_removed,string"` // MEMBER_PRUNE ChannelId uint64 `json:"channel_id,string"` // MEMBER_MOVE & MESSAGE_PIN & MESSAGE_UNPIN & MESSAGE_DELETE MessageId uint64 `json:"message_id,string"` // MESSAGE_PIN & MESSAGE_UNPIN Id uint64 `json:"id,string"` // MESSAGE_DELETE & MESSAGE_BULK_DELETE & MEMBER_DISCONNECT & MEMBER_MOVE Count int `json:"count,string"` // CHANNEL_OVERWRITE_CREATE & CHANNEL_OVERWRITE_UPDATE & CHANNEL_OVERWRITE_DELETE Type EntityType `json:"type"` // CHANNEL_OVERWRITE_CREATE & CHANNEL_OVERWRITE_UPDATE & CHANNEL_OVERWRITE_DELETE RoleName string `json:"role_name"` //CHANNEL_OVERWRITE_CREATE & CHANNEL_OVERWRITE_UPDATE & CHANNEL_OVERWRITE_DELETE }
type AuditLog ¶
type AuditLog struct { Webhooks []guild.Webhook `json:"webhooks"` Users []user.User `json:"users"` Entries []AuditLogEntry `json:"audit_log_entries"` Integrations []integration.Integration `json:"integrations"` }
type AuditLogChange ¶
type AuditLogChange struct { NewValue interface{} `json:"new_value"` OldValue interface{} `json:"old_value"` Key ChangeKey `json:"key"` }
https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-key
type AuditLogEntry ¶
type AuditLogEntry struct { TargetId uint64 `json:"target_id,string"` Changes []AuditLogChange `json:"changes"` UserId uint64 `json:"user_id,string"` Id uint64 `json:"id,string"` ActionType AuditLogEvent `json:"action_type"` Options AuditEntryInfo `json:"options"` Reason *string `json:"reason"` }
type AuditLogEvent ¶
type AuditLogEvent int
const ( EventGuildUpdate AuditLogEvent = 1 EventChannelCreate AuditLogEvent = 10 EventChannelUpdate AuditLogEvent = 11 EventChannelDelete AuditLogEvent = 12 EventChannelOverwriteCreate AuditLogEvent = 13 EventChannelOverwriteUpdate AuditLogEvent = 14 EventChannelOverwriteDelete AuditLogEvent = 15 EventMemberKick AuditLogEvent = 20 EventMemberPrune AuditLogEvent = 21 EventMemberBanAdd AuditLogEvent = 22 EventMemberBanRemove AuditLogEvent = 23 EventMemberUpdate AuditLogEvent = 24 EventMemberRoleUpdate AuditLogEvent = 25 EventMemberMove AuditLogEvent = 26 EventMemberDisconnect AuditLogEvent = 27 EventBotAdd AuditLogEvent = 28 EventRoleCreate AuditLogEvent = 30 EventRoleUpdate AuditLogEvent = 31 EventRoleDelete AuditLogEvent = 32 EventInviteCreate AuditLogEvent = 40 EventInviteUpdate AuditLogEvent = 41 EventInviteDelete AuditLogEvent = 42 EventWebhookCreate AuditLogEvent = 50 EventWebhookUpdate AuditLogEvent = 51 EventWebhookDelete AuditLogEvent = 52 EventEmojiCreate AuditLogEvent = 60 EventEmojiUpdate AuditLogEvent = 61 EventEmojiDelete AuditLogEvent = 62 EventMessageDelete AuditLogEvent = 72 EventMessageBulkDelete AuditLogEvent = 73 EventMessagePin AuditLogEvent = 74 EventMessageUnpin AuditLogEvent = 75 EventMessageIntegrationCreate AuditLogEvent = 80 EventMessageIntegrationUpdate AuditLogEvent = 81 EventMessageIntegrationDelete AuditLogEvent = 82 )
type ChangeKey ¶
type ChangeKey string
const ( // guild ChangeKeyName ChangeKey = "name" ChangeKeyIconHash ChangeKey = "icon_hash" ChangeKeySplashHash ChangeKey = "splash_hash" ChangeKeyOwnerId ChangeKey = "owner_id" ChangeKeyRegion ChangeKey = "region" ChangeKeyAfkChannelId ChangeKey = "afk_channel_id" ChangeKeyAfkTimeout ChangeKey = "afk_timeout" ChangeKeyMfaLevel ChangeKey = "mfa_level" ChangeKeyVerificationLevel ChangeKey = "verification_level" ChangeKeyExplicitContentFilter ChangeKey = "explicit_content_filter" ChangeKeyDefaultMessageNotifications ChangeKey = "default_message_notifications" ChangeKeyVanityUrlCode ChangeKey = "vanity_url_code" ChangeKeyRoleAdd ChangeKey = "$add" ChangeKeyRoleRemove ChangeKey = "$remove" ChangeKeyPruneDeleteDays ChangeKey = "prune_delete_days" ChangeKeyWidgetEnabled ChangeKey = "widget_enabled" ChangeKeyWidgetChannelId ChangeKey = "widget_channel_id" ChangeKeySystemChannelId ChangeKey = "system_channel_id" // channel ChangeKeyPosition ChangeKey = "position" ChangeKeyTopic ChangeKey = "topic" ChangeKeyBitrate ChangeKey = "bitrate" ChangeKeyPermissionOverwrites ChangeKey = "permission_overwrites" ChangeKeyNsfw ChangeKey = "nsfw" ChangeKeyApplicationId ChangeKey = "application_id" ChangeKeyRateLimitPerUser ChangeKey = "rate_limit_per_user" // role ChangeKeyPermissions ChangeKey = "permissions" ChangeKeyColor ChangeKey = "color" ChangeKeyHoist ChangeKey = "hoist" ChangeKeyMentionable ChangeKey = "mentionable" ChangeKeyAllow ChangeKey = "allow" ChangeKeyDeny ChangeKey = "deny" // invite ChangeKeyCode ChangeKey = "code" ChangeKeyChannelId ChangeKey = "channel_id" ChangeKeyInviterId ChangeKey = "inviter_id" ChangeKeyMaxUses ChangeKey = "max_uses" ChangeKeyUses ChangeKey = "uses" ChangeKeyMaxAge ChangeKey = "max_age" ChangeKeyTemporary ChangeKey = "temporary" // user ChangeKeyDeaf ChangeKey = "deaf" ChangeKeyMute ChangeKey = "mute" ChangeKeyNick ChangeKey = "nick" ChangeKeyAvatarHash ChangeKey = "avatar_hash" // any ChangeKeyId ChangeKey = "id" ChangeKeyType ChangeKey = "type" // integration ChangeKeyEnableEmoticons ChangeKey = "enable_emoticons" ChangeKeyExpireBehaviour ChangeKey = "expire_behaviour" ChangeKeyExpireGracePeriod ChangeKey = "expire_grace_period" )
type EntityType ¶
type EntityType string
const ( EntityTypeMember EntityType = "member" EntityTypeRole EntityType = "role" )
Click to show internal directories.
Click to hide internal directories.