Versions in this module Expand all Collapse all v0 v0.0.20 May 30, 2021 v0.0.19 May 25, 2021 Changes in this version + const IDLength + const JobTTLSeconds + func Ack(ctx context.Context, redis *redis.Client, connCode string) + func AckSubscribe(ctx context.Context, redis *redis.Client, connCode string) *redis.PubSub + func ApplyMuteDeaf(sess *discordgo.Session, guildID, userID string, mute, deaf bool) error + func PushJob(ctx context.Context, redis *redis.Client, connCode string, jobType JobType, ...) error + func Subscribe(ctx context.Context, redis *redis.Client, connCode string) *redis.PubSub + type Job struct + JobType JobType + Payload interface{} + func PopJob(ctx context.Context, redis *redis.Client, connCode string) (Job, error) + type JobType int + const ConnectionJob + const GameOverJob + const LobbyJob + const PlayerJob + const StateJob + type ModifyTask struct + GuildID uint64 + Parameters PatchParams + TaskID string + UserID uint64 + func NewModifyTask(guildID, userID uint64, params PatchParams) ModifyTask + type MuteDeafenSuccessCounts struct + Capture int64 + Official int64 + RateLimit int64 + Worker int64 + type PatchParams struct + Deaf bool + Mute bool + type UserModify struct + Deaf bool + Mute bool + UserID uint64 + type UserModifyRequest struct + Premium premium.Tier + Users []UserModify