Skip to content

Commit

Permalink
Declare type for iota consts
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrDev committed Mar 19, 2024
1 parent 1cd20b5 commit c404637
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion discord/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ type TeamMember struct {
type MembershipState int

const (
MembershipStateInvited = iota + 1
MembershipStateInvited MembershipState = iota + 1
MembershipStateAccepted
)

Expand Down
2 changes: 1 addition & 1 deletion discord/application_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type ApplicationCommandType int

const (
ApplicationCommandTypeSlash = iota + 1
ApplicationCommandTypeSlash ApplicationCommandType = iota + 1
ApplicationCommandTypeUser
ApplicationCommandTypeMessage
)
Expand Down
2 changes: 1 addition & 1 deletion discord/application_command_permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type ApplicationCommandPermissionType int

// types of ApplicationCommandPermissionType
const (
ApplicationCommandPermissionTypeRole = iota + 1
ApplicationCommandPermissionTypeRole ApplicationCommandPermissionType = iota + 1
ApplicationCommandPermissionTypeUser
ApplicationCommandPermissionTypeChannel
)
Expand Down
2 changes: 1 addition & 1 deletion discord/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ type PartialChannel struct {
type VideoQualityMode int

const (
VideoQualityModeAuto = iota + 1
VideoQualityModeAuto VideoQualityMode = iota + 1
VideoQualityModeFull
)

Expand Down
6 changes: 3 additions & 3 deletions discord/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type ComponentType int

// Supported ComponentType(s)
const (
ComponentTypeActionRow = iota + 1
ComponentTypeActionRow ComponentType = iota + 1
ComponentTypeButton
ComponentTypeStringSelectMenu
ComponentTypeTextInput
Expand Down Expand Up @@ -229,7 +229,7 @@ type ButtonStyle int

// Supported ButtonStyle(s)
const (
ButtonStylePrimary = iota + 1
ButtonStylePrimary ButtonStyle = iota + 1
ButtonStyleSecondary
ButtonStyleSuccess
ButtonStyleDanger
Expand Down Expand Up @@ -459,6 +459,6 @@ func (c TextInputComponent) WithValue(value string) TextInputComponent {
type TextInputStyle int

const (
TextInputStyleShort = iota + 1
TextInputStyleShort TextInputStyle = iota + 1
TextInputStyleParagraph
)

0 comments on commit c404637

Please sign in to comment.