Add types to untyped constants

This commit is contained in:
Carson Hoffman 2020-06-28 16:57:51 -04:00
parent c78bd2c24c
commit cab170c8f5
No known key found for this signature in database
GPG key ID: 05B660CB452C657F

View file

@ -307,7 +307,7 @@ type MessageActivityType int
// Constants for the different types of Message Activity // Constants for the different types of Message Activity
const ( const (
MessageActivityTypeJoin = iota + 1 MessageActivityTypeJoin MessageActivityType = iota + 1
MessageActivityTypeSpectate MessageActivityTypeSpectate
MessageActivityTypeListen MessageActivityTypeListen
MessageActivityTypeJoinRequest MessageActivityTypeJoinRequest
@ -319,7 +319,7 @@ type MessageFlag int
// Constants for the different bit offsets of Message Flags // Constants for the different bit offsets of Message Flags
const ( const (
// This message has been published to subscribed channels (via Channel Following) // This message has been published to subscribed channels (via Channel Following)
MessageFlagCrossposted = 1 << iota MessageFlagCrossposted MessageFlag = 1 << iota
// This message originated from a message in another channel (via Channel Following) // This message originated from a message in another channel (via Channel Following)
MessageFlagIsCrosspost MessageFlagIsCrosspost
// Do not include any embeds when serializing this message // Do not include any embeds when serializing this message