Documentation ¶
Index ¶
- func ApplyMuteDeaf(sess *discordgo.Session, guildID, userID string, mute, deaf bool) error
- func BotTokenIdentifyKey(token string) string
- func BotTokenIdentifyLockKey(token string) string
- func BroadcastTaskAckKey(taskID string) string
- func CompleteTaskAckKey(taskID string) string
- func IsTokenLocked(client *redis.Client, token string) bool
- func IsTokenLockedOut(client *redis.Client, token string, thres IdentifyThresholds) bool
- func MarkIdentifyAndLockForToken(client *redis.Client, token string)
- func TasksSubscribeKey(connectCode string) string
- func WaitForToken(client *redis.Client, token string)
- type IdentifyThresholds
- type ModifyTask
- type MuteDeafenSuccessCounts
- type NoNickPatchParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMuteDeaf ¶
func BotTokenIdentifyKey ¶ added in v0.1.2
func BotTokenIdentifyLockKey ¶ added in v0.1.2
func BroadcastTaskAckKey ¶
func CompleteTaskAckKey ¶
func IsTokenLocked ¶ added in v0.1.2
func IsTokenLockedOut ¶ added in v0.1.2
func IsTokenLockedOut(client *redis.Client, token string, thres IdentifyThresholds) bool
func MarkIdentifyAndLockForToken ¶ added in v0.1.2
func MarkIdentifyAndLockForToken(client *redis.Client, token string)
func TasksSubscribeKey ¶
func WaitForToken ¶ added in v0.1.2
func WaitForToken(client *redis.Client, token string)
Types ¶
type IdentifyThresholds ¶ added in v0.1.2
type ModifyTask ¶
type ModifyTask struct { GuildID uint64 `json:"guildID"` UserID uint64 `json:"userID"` Parameters NoNickPatchParams `json:"parameters"` TaskID string `json:"taskID"` }
func NewModifyTask ¶
func NewModifyTask(guildID, userID uint64, params NoNickPatchParams) ModifyTask
type MuteDeafenSuccessCounts ¶ added in v1.2.2
type MuteDeafenSuccessCounts struct { Worker int64 `json:"worker"` Capture int64 `json:"capture"` Official int64 `json:"official"` }
a response indicating how the mutes/deafens were issued
type NoNickPatchParams ¶
Click to show internal directories.
Click to hide internal directories.