Parcourir la source

Move MakeIntent method

Łukasz Horonziak il y a 4 ans
Parent
commit
0e6ec53738
2 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 5 0
      structs.go
  2. 0 4
      util.go

+ 5 - 0
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
+}

+ 0 - 4
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
-}