Discord: add dedicated type for ExpireBehavior
This commit is contained in:
parent
a298160529
commit
1b990cd58d
|
@ -167,8 +167,8 @@ type Integration struct {
|
||||||
// used for subscribers
|
// used for subscribers
|
||||||
RoleID Snowflake `json:"role_id"`
|
RoleID Snowflake `json:"role_id"`
|
||||||
|
|
||||||
ExpireBehavior int `json:"expire_behavior"`
|
ExpireBehavior ExpireBehavior `json:"expire_behavior"`
|
||||||
ExpireGracePeriod int `json:"expire_grace_period"`
|
ExpireGracePeriod int `json:"expire_grace_period"`
|
||||||
|
|
||||||
User User `json:"user"`
|
User User `json:"user"`
|
||||||
Account struct {
|
Account struct {
|
||||||
|
|
|
@ -88,3 +88,13 @@ const (
|
||||||
Twitch Service = "twitch"
|
Twitch Service = "twitch"
|
||||||
YouTube Service = "youtube"
|
YouTube Service = "youtube"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ExpireBehavior is the integration expire behavior that regulates what happens, if a subscriber expires.
|
||||||
|
type ExpireBehavior uint8
|
||||||
|
|
||||||
|
var (
|
||||||
|
// RemoveRole removes the role of the subscriber.
|
||||||
|
RemoveRole ExpireBehavior = 0
|
||||||
|
// Kick kicks the subscriber from the guild.
|
||||||
|
Kick ExpireBehavior = 1
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue