Skip to content

Commit

Permalink
Moved MessageReactionType from events.go to structs.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SamusAranX committed Jul 11, 2024
1 parent f51dd65 commit 55cc806
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
48 changes: 24 additions & 24 deletions eventhandlers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,6 @@ func (m *MessageDelete) UnmarshalJSON(b []byte) error {
return json.Unmarshal(b, &m.Message)
}

// MessageReactionType is the type of reaction. Burst-type reactions are Super Reactions.
type MessageReactionType int

// Block contains all known MessageReactionType values.
const (
MessageReactionTypeNormal MessageReactionType = 0
MessageReactionTypeBurst MessageReactionType = 1
)

// MessageReactionAdd is the data for a MessageReactionAdd event.
type MessageReactionAdd struct {
*MessageReaction
Expand Down
9 changes: 9 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2153,6 +2153,15 @@ type APIErrorMessage struct {
Message string `json:"message"`
}

// MessageReactionType is the type of reaction. Burst-type reactions are Super Reactions.
type MessageReactionType int

// Block contains all known MessageReactionType values.
const (
MessageReactionTypeNormal MessageReactionType = 0
MessageReactionTypeBurst MessageReactionType = 1
)

// MessageReaction stores partial data for a message reaction.
type MessageReaction struct {
MessageID string `json:"message_id"`
Expand Down

0 comments on commit 55cc806

Please sign in to comment.