diff --git a/structs.go b/structs.go index 914bd4e..a6b572e 100644 --- a/structs.go +++ b/structs.go @@ -1141,3 +1141,8 @@ const ( IntentsGuildPresences IntentsNone Intent = 0 ) + +// MakeIntent helps convert a gateway intent value for use in the Identify structure. +func MakeIntent(intents Intent) *Intent { + return &intents +} diff --git a/util.go b/util.go index 1dc3f47..02443ca 100644 --- a/util.go +++ b/util.go @@ -15,7 +15,3 @@ func SnowflakeTimestamp(ID string) (t time.Time, err error) { t = time.Unix(timestamp/1000, 0) return } - -func MakeIntent(intents Intent) *Intent { - return &intents -}