Fix wording
This commit is contained in:
parent
ee9178e237
commit
eff98faf41
1 changed files with 6 additions and 3 deletions
|
@ -925,22 +925,25 @@ type GatewayStatusUpdate struct {
|
||||||
AFK bool `json:"afk"`
|
AFK bool `json:"afk"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://discordapp.com/developers/docs/topics/gateway#activity-object
|
||||||
|
// Activity defines the Activity sent with GatewayStatusUpdate
|
||||||
type Activity struct {
|
type Activity struct {
|
||||||
Name string
|
Name string
|
||||||
Type ActivityType
|
Type ActivityType
|
||||||
URL string
|
URL string
|
||||||
}
|
}
|
||||||
|
|
||||||
// GameType is the type of "game" (see GameType* consts) in the Game struct
|
// ActivityType is the type of Activity (see ActivityType* consts) in the Activity struct
|
||||||
// https://discordapp.com/developers/docs/topics/gateway#activity-object-activity-types
|
// https://discordapp.com/developers/docs/topics/gateway#activity-object-activity-types
|
||||||
type ActivityType int
|
type ActivityType int
|
||||||
|
|
||||||
// Valid GameType values
|
// Valid ActivityType values
|
||||||
|
//https://discordapp.com/developers/docs/topics/gateway#activity-object-activity-types
|
||||||
const (
|
const (
|
||||||
ActivityTypeGame GameType = iota
|
ActivityTypeGame GameType = iota
|
||||||
ActivityTypeStreaming
|
ActivityTypeStreaming
|
||||||
ActivityTypeListening
|
ActivityTypeListening
|
||||||
// ActivityTypeWatching // not valid in the use?
|
// ActivityTypeWatching // not valid in this use case?
|
||||||
ActivityTypeCustom = 4
|
ActivityTypeCustom = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue