mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-08 12:36:58 +00:00
Discord: add dedicated type for ExpireBehavior
This commit is contained in:
parent
a298160529
commit
1b990cd58d
|
@ -167,7 +167,7 @@ type Integration struct {
|
|||
// used for subscribers
|
||||
RoleID Snowflake `json:"role_id"`
|
||||
|
||||
ExpireBehavior int `json:"expire_behavior"`
|
||||
ExpireBehavior ExpireBehavior `json:"expire_behavior"`
|
||||
ExpireGracePeriod int `json:"expire_grace_period"`
|
||||
|
||||
User User `json:"user"`
|
||||
|
|
|
@ -88,3 +88,13 @@ const (
|
|||
Twitch Service = "twitch"
|
||||
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 a new issue