Documentation
¶
Index ¶
- func ApplyMuteDeaf(sess *discordgo.Session, guildID, userID string, mute, deaf bool) error
- func IsTokenLocked(client *redis.Client, token string) bool
- func LockForToken(client *redis.Client, token string)
- func WaitForToken(client *redis.Client, token string)
- type ModifyTask
- type MuteDeafenSuccessCounts
- type PatchParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMuteDeaf ¶
func IsTokenLocked ¶
func LockForToken ¶
func LockForToken(client *redis.Client, token string)
func WaitForToken ¶
func WaitForToken(client *redis.Client, token string)
Types ¶
type ModifyTask ¶
type ModifyTask struct {
GuildID uint64 `json:"guildID"`
UserID uint64 `json:"userID"`
Parameters PatchParams `json:"parameters"`
TaskID string `json:"taskID"`
}
func NewModifyTask ¶
func NewModifyTask(guildID, userID uint64, params PatchParams) ModifyTask
type MuteDeafenSuccessCounts ¶
type MuteDeafenSuccessCounts struct {
Worker int64 `json:"worker"`
Capture int64 `json:"capture"`
Official int64 `json:"official"`
RateLimit int64 `json:"ratelimit"`
}
a response indicating how the mutes/deafens were issued, and if ratelimits occurred
type PatchParams ¶
Click to show internal directories.
Click to hide internal directories.