Skip to content

Commit

Permalink
fix inconsistent naming of XFlagsNone
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Aug 5, 2022
1 parent c686506 commit 7c1b275
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions discord/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func NewFile(name string, description string, reader io.Reader, flags ...FileFla
Name: name,
Description: description,
Reader: reader,
Flags: FileFlagNone.Add(flags...),
Flags: FileFlagsNone.Add(flags...),
}
}

Expand All @@ -111,7 +111,7 @@ type FileFlags int
// all FileFlags
const (
FileFlagSpoiler FileFlags = 1 << iota
FileFlagNone FileFlags = 0
FileFlagsNone FileFlags = 0
)

// Add allows you to add multiple bits together, producing a new bit
Expand Down
2 changes: 1 addition & 1 deletion discord/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ const (
MessageFlagHasThread
MessageFlagEphemeral
MessageFlagLoading // Message is an interaction of type 5, awaiting further response
MessageFlagNone MessageFlags = 0
MessageFlagsNone MessageFlags = 0
)

// Add allows you to add multiple bits together, producing a new bit
Expand Down
2 changes: 1 addition & 1 deletion discord/message_create_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (b *MessageCreateBuilder) RemoveFlags(flags ...MessageFlags) *MessageCreate

// ClearFlags clears the discord.MessageFlags of the Message
func (b *MessageCreateBuilder) ClearFlags() *MessageCreateBuilder {
return b.SetFlags(MessageFlagNone)
return b.SetFlags(MessageFlagsNone)
}

// SetEphemeral adds/removes discord.MessageFlagEphemeral to the Message flags
Expand Down
2 changes: 1 addition & 1 deletion discord/message_update_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (b *MessageUpdateBuilder) RemoveFlags(flags ...MessageFlags) *MessageUpdate

// ClearFlags clears the MessageFlags of the Message
func (b *MessageUpdateBuilder) ClearFlags() *MessageUpdateBuilder {
return b.SetFlags(MessageFlagNone)
return b.SetFlags(MessageFlagsNone)
}

// SetSuppressEmbeds adds/removes discord.MessageFlagSuppressEmbeds to the Message flags
Expand Down
2 changes: 1 addition & 1 deletion discord/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
UserFlagEarlyVerifiedBotDeveloper
UserFlagDiscordCertifiedModerator
UserFlagBotHTTPInteractions
UserFlagNone UserFlags = 0
UserFlagsNone UserFlags = 0
)

var _ Mentionable = (*User)(nil)
Expand Down
2 changes: 1 addition & 1 deletion discord/webhook_message_create_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (b *WebhookMessageCreateBuilder) RemoveFlags(flags ...MessageFlags) *Webhoo

// ClearFlags clears the discord.MessageFlags of the Message
func (b *WebhookMessageCreateBuilder) ClearFlags() *WebhookMessageCreateBuilder {
return b.SetFlags(MessageFlagNone)
return b.SetFlags(MessageFlagsNone)
}

// SetSuppressEmbeds adds/removes discord.MessageFlagSuppressEmbeds to the Message flags
Expand Down

0 comments on commit 7c1b275

Please sign in to comment.