From 0e6ec53738e5708a55b48ca01e2d578c6d92c3f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Horonziak?= Date: Sun, 24 May 2020 09:44:33 +0200 Subject: [PATCH] Move MakeIntent method --- structs.go | 5 +++++ util.go | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -}