Move MakeIntent method
This commit is contained in:
parent
de7803becd
commit
0e6ec53738
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
|
4
util.go
4
util.go
|
@ -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
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue