Skip to content

Commit

Permalink
Add missing message types
Browse files Browse the repository at this point in the history
  • Loading branch information
HopeBaron committed May 12, 2021
1 parent 3d76a40 commit f6d3e3a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion common/src/main/kotlin/entity/DiscordMessage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,13 @@ sealed class MessageType(val code: Int) {

@Suppress("SpellCheckingInspection")
object GuildDiscoveryRequalified : MessageType(15)
object GuildDiscoveryGracePeriodInitialWarning : MessageType(16)
object GuildDiscoveryGracePeriodFinalWarning : MessageType(17)
object ThreadCreated : MessageType(18)
object Reply : MessageType(19)
object ApplicationCommand : MessageType(20)
object ThreadStarterMessage : MessageType(21)
object GuildInviteReminder : MessageType(22)

object MessageTypeSerializer : KSerializer<MessageType> {

Expand Down Expand Up @@ -777,7 +783,14 @@ sealed class MessageType(val code: Int) {
GuildDiscoveryDisqualified,
GuildDiscoveryRequalified,
Reply,
)
GuildDiscoveryGracePeriodInitialWarning,
GuildDiscoveryGracePeriodFinalWarning,
ThreadCreated,
ApplicationCommand,
ThreadStarterMessage,
GuildInviteReminder,

)
}
}

Expand Down

0 comments on commit f6d3e3a

Please sign in to comment.