Move MakeIntent method

This commit is contained in:
Łukasz Horonziak 2020-05-24 09:44:33 +02:00
parent de7803becd
commit 0e6ec53738
2 changed files with 5 additions and 4 deletions

View file

@ -1141,3 +1141,8 @@ const (
IntentsGuildPresences IntentsGuildPresences
IntentsNone Intent = 0 IntentsNone Intent = 0
) )
// MakeIntent helps convert a gateway intent value for use in the Identify structure.
func MakeIntent(intents Intent) *Intent {
return &intents
}

View file

@ -15,7 +15,3 @@ func SnowflakeTimestamp(ID string) (t time.Time, err error) {
t = time.Unix(timestamp/1000, 0) t = time.Unix(timestamp/1000, 0)
return return
} }
func MakeIntent(intents Intent) *Intent {
return &intents
}