|
@@ -159,8 +159,8 @@ type ExpireBehavior int
|
|
|
|
|
|
// Block of valid ExpireBehaviors
|
|
// Block of valid ExpireBehaviors
|
|
const (
|
|
const (
|
|
- ExpireBehaviorRemoveRole ExpireBehavior = iota
|
|
|
|
- ExpireBehaviorKick
|
|
|
|
|
|
+ ExpireBehaviorRemoveRole ExpireBehavior = 0
|
|
|
|
+ ExpireBehaviorKick ExpireBehavior = 1
|
|
)
|
|
)
|
|
|
|
|
|
// IntegrationAccount is integration account information
|
|
// IntegrationAccount is integration account information
|
|
@@ -218,7 +218,7 @@ type TargetUserType int
|
|
|
|
|
|
// Block contains known TargetUserType values
|
|
// Block contains known TargetUserType values
|
|
const (
|
|
const (
|
|
- TargetUserTypeStream TargetUserType = iota
|
|
|
|
|
|
+ TargetUserTypeStream TargetUserType = 1
|
|
)
|
|
)
|
|
|
|
|
|
// ChannelType is the type of a Channel
|
|
// ChannelType is the type of a Channel
|
|
@@ -226,13 +226,13 @@ type ChannelType int
|
|
|
|
|
|
// Block contains known ChannelType values
|
|
// Block contains known ChannelType values
|
|
const (
|
|
const (
|
|
- ChannelTypeGuildText ChannelType = iota
|
|
|
|
- ChannelTypeDM
|
|
|
|
- ChannelTypeGuildVoice
|
|
|
|
- ChannelTypeGroupDM
|
|
|
|
- ChannelTypeGuildCategory
|
|
|
|
- ChannelTypeGuildNews
|
|
|
|
- ChannelTypeGuildStore
|
|
|
|
|
|
+ ChannelTypeGuildText ChannelType = 0
|
|
|
|
+ ChannelTypeDM ChannelType = 1
|
|
|
|
+ ChannelTypeGuildVoice ChannelType = 2
|
|
|
|
+ ChannelTypeGroupDM ChannelType = 3
|
|
|
|
+ ChannelTypeGuildCategory ChannelType = 4
|
|
|
|
+ ChannelTypeGuildNews ChannelType = 5
|
|
|
|
+ ChannelTypeGuildStore ChannelType = 6
|
|
)
|
|
)
|
|
|
|
|
|
// A Channel holds all data related to an individual Discord channel.
|
|
// A Channel holds all data related to an individual Discord channel.
|
|
@@ -330,8 +330,8 @@ type PermissionOverwriteType int
|
|
|
|
|
|
// The possible permission overwrite types.
|
|
// The possible permission overwrite types.
|
|
const (
|
|
const (
|
|
- PermissionOverwriteTypeRole PermissionOverwriteType = iota
|
|
|
|
- PermissionOverwriteTypeMember
|
|
|
|
|
|
+ PermissionOverwriteTypeRole PermissionOverwriteType = 0
|
|
|
|
+ PermissionOverwriteTypeMember PermissionOverwriteType = 1
|
|
)
|
|
)
|
|
|
|
|
|
// A PermissionOverwrite holds permission overwrite data for a Channel
|
|
// A PermissionOverwrite holds permission overwrite data for a Channel
|
|
@@ -388,11 +388,11 @@ type VerificationLevel int
|
|
|
|
|
|
// Constants for VerificationLevel levels from 0 to 4 inclusive
|
|
// Constants for VerificationLevel levels from 0 to 4 inclusive
|
|
const (
|
|
const (
|
|
- VerificationLevelNone VerificationLevel = iota
|
|
|
|
- VerificationLevelLow
|
|
|
|
- VerificationLevelMedium
|
|
|
|
- VerificationLevelHigh
|
|
|
|
- VerificationLevelVeryHigh
|
|
|
|
|
|
+ VerificationLevelNone VerificationLevel = 0
|
|
|
|
+ VerificationLevelLow VerificationLevel = 1
|
|
|
|
+ VerificationLevelMedium VerificationLevel = 2
|
|
|
|
+ VerificationLevelHigh VerificationLevel = 3
|
|
|
|
+ VerificationLevelVeryHigh VerificationLevel = 4
|
|
)
|
|
)
|
|
|
|
|
|
// ExplicitContentFilterLevel type definition
|
|
// ExplicitContentFilterLevel type definition
|
|
@@ -400,9 +400,9 @@ type ExplicitContentFilterLevel int
|
|
|
|
|
|
// Constants for ExplicitContentFilterLevel levels from 0 to 2 inclusive
|
|
// Constants for ExplicitContentFilterLevel levels from 0 to 2 inclusive
|
|
const (
|
|
const (
|
|
- ExplicitContentFilterDisabled ExplicitContentFilterLevel = iota
|
|
|
|
- ExplicitContentFilterMembersWithoutRoles
|
|
|
|
- ExplicitContentFilterAllMembers
|
|
|
|
|
|
+ ExplicitContentFilterDisabled ExplicitContentFilterLevel = 0
|
|
|
|
+ ExplicitContentFilterMembersWithoutRoles ExplicitContentFilterLevel = 1
|
|
|
|
+ ExplicitContentFilterAllMembers ExplicitContentFilterLevel = 2
|
|
)
|
|
)
|
|
|
|
|
|
// MfaLevel type definition
|
|
// MfaLevel type definition
|
|
@@ -410,8 +410,8 @@ type MfaLevel int
|
|
|
|
|
|
// Constants for MfaLevel levels from 0 to 1 inclusive
|
|
// Constants for MfaLevel levels from 0 to 1 inclusive
|
|
const (
|
|
const (
|
|
- MfaLevelNone MfaLevel = iota
|
|
|
|
- MfaLevelElevated
|
|
|
|
|
|
+ MfaLevelNone MfaLevel = 0
|
|
|
|
+ MfaLevelElevated MfaLevel = 1
|
|
)
|
|
)
|
|
|
|
|
|
// PremiumTier type definition
|
|
// PremiumTier type definition
|
|
@@ -419,10 +419,10 @@ type PremiumTier int
|
|
|
|
|
|
// Constants for PremiumTier levels from 0 to 3 inclusive
|
|
// Constants for PremiumTier levels from 0 to 3 inclusive
|
|
const (
|
|
const (
|
|
- PremiumTierNone PremiumTier = iota
|
|
|
|
- PremiumTier1
|
|
|
|
- PremiumTier2
|
|
|
|
- PremiumTier3
|
|
|
|
|
|
+ PremiumTierNone PremiumTier = 0
|
|
|
|
+ PremiumTier1 PremiumTier = 1
|
|
|
|
+ PremiumTier2 PremiumTier = 2
|
|
|
|
+ PremiumTier3 PremiumTier = 3
|
|
)
|
|
)
|
|
|
|
|
|
// A Guild holds all data related to a specific Discord Guild. Guilds are also
|
|
// A Guild holds all data related to a specific Discord Guild. Guilds are also
|
|
@@ -618,8 +618,8 @@ type MessageNotifications int
|
|
|
|
|
|
// Block containing known MessageNotifications values
|
|
// Block containing known MessageNotifications values
|
|
const (
|
|
const (
|
|
- MessageNotificationsAllMessages MessageNotifications = iota
|
|
|
|
- MessageNotificationsOnlyMentions
|
|
|
|
|
|
+ MessageNotificationsAllMessages MessageNotifications = 0
|
|
|
|
+ MessageNotificationsOnlyMentions MessageNotifications = 1
|
|
)
|
|
)
|
|
|
|
|
|
// SystemChannelFlag is the type of flags in the system channel (see SystemChannelFlag* consts)
|
|
// SystemChannelFlag is the type of flags in the system channel (see SystemChannelFlag* consts)
|
|
@@ -628,8 +628,8 @@ type SystemChannelFlag int
|
|
|
|
|
|
// Block containing known SystemChannelFlag values
|
|
// Block containing known SystemChannelFlag values
|
|
const (
|
|
const (
|
|
- SystemChannelFlagsSuppressJoin SystemChannelFlag = 1 << iota
|
|
|
|
- SystemChannelFlagsSuppressPremium
|
|
|
|
|
|
+ SystemChannelFlagsSuppressJoin SystemChannelFlag = 1 << 0
|
|
|
|
+ SystemChannelFlagsSuppressPremium SystemChannelFlag = 1 << 1
|
|
)
|
|
)
|
|
|
|
|
|
// IconURL returns a URL to the guild's icon.
|
|
// IconURL returns a URL to the guild's icon.
|
|
@@ -1199,11 +1199,11 @@ type ActivityType int
|
|
|
|
|
|
// Valid ActivityType values
|
|
// Valid ActivityType values
|
|
const (
|
|
const (
|
|
- ActivityTypeGame ActivityType = iota
|
|
|
|
- ActivityTypeStreaming
|
|
|
|
- ActivityTypeListening
|
|
|
|
|
|
+ ActivityTypeGame ActivityType = 0
|
|
|
|
+ ActivityTypeStreaming ActivityType = 1
|
|
|
|
+ ActivityTypeListening ActivityType = 2
|
|
// ActivityTypeWatching // not valid in this use case?
|
|
// ActivityTypeWatching // not valid in this use case?
|
|
- ActivityTypeCustom = 4
|
|
|
|
|
|
+ ActivityTypeCustom ActivityType = 4
|
|
)
|
|
)
|
|
|
|
|
|
// Identify is sent during initial handshake with the discord gateway.
|
|
// Identify is sent during initial handshake with the discord gateway.
|
|
@@ -1372,21 +1372,21 @@ type Intent int
|
|
|
|
|
|
// Constants for the different bit offsets of intents
|
|
// Constants for the different bit offsets of intents
|
|
const (
|
|
const (
|
|
- IntentsGuilds Intent = 1 << iota
|
|
|
|
- IntentsGuildMembers
|
|
|
|
- IntentsGuildBans
|
|
|
|
- IntentsGuildEmojis
|
|
|
|
- IntentsGuildIntegrations
|
|
|
|
- IntentsGuildWebhooks
|
|
|
|
- IntentsGuildInvites
|
|
|
|
- IntentsGuildVoiceStates
|
|
|
|
- IntentsGuildPresences
|
|
|
|
- IntentsGuildMessages
|
|
|
|
- IntentsGuildMessageReactions
|
|
|
|
- IntentsGuildMessageTyping
|
|
|
|
- IntentsDirectMessages
|
|
|
|
- IntentsDirectMessageReactions
|
|
|
|
- IntentsDirectMessageTyping
|
|
|
|
|
|
+ IntentsGuilds Intent = 1 << 0
|
|
|
|
+ IntentsGuildMembers Intent = 1 << 1
|
|
|
|
+ IntentsGuildBans Intent = 1 << 2
|
|
|
|
+ IntentsGuildEmojis Intent = 1 << 3
|
|
|
|
+ IntentsGuildIntegrations Intent = 1 << 4
|
|
|
|
+ IntentsGuildWebhooks Intent = 1 << 5
|
|
|
|
+ IntentsGuildInvites Intent = 1 << 6
|
|
|
|
+ IntentsGuildVoiceStates Intent = 1 << 7
|
|
|
|
+ IntentsGuildPresences Intent = 1 << 8
|
|
|
|
+ IntentsGuildMessages Intent = 1 << 9
|
|
|
|
+ IntentsGuildMessageReactions Intent = 1 << 10
|
|
|
|
+ IntentsGuildMessageTyping Intent = 1 << 11
|
|
|
|
+ IntentsDirectMessages Intent = 1 << 12
|
|
|
|
+ IntentsDirectMessageReactions Intent = 1 << 13
|
|
|
|
+ IntentsDirectMessageTyping Intent = 1 << 14
|
|
|
|
|
|
IntentsAllWithoutPrivileged = IntentsGuilds |
|
|
IntentsAllWithoutPrivileged = IntentsGuilds |
|
|
IntentsGuildBans |
|
|
IntentsGuildBans |
|