discord

package
v0.0.0-...-3ed5696 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToDiscord

func AddToDiscord(user *models.User, retry bool) bool

func DequeueUsers

func DequeueUsers(event string) ([]*models.User, error)

func EnqueueUser

func EnqueueUser(user *models.User, event string) error

func JoinGuildTask

func JoinGuildTask(interval time.Duration)

func UpdateGuildUserRole

func UpdateGuildUserRole(user *models.User, retry bool) bool

func UpdateRoleTask

func UpdateRoleTask(interval time.Duration)

Types

type DiscordRole

type DiscordRole string
const (
	PendingDiscord     DiscordRole = "1087192865186254999" // Pending Email Verification
	RegisteringDiscord DiscordRole = "1087193230157819925" // Email Verified, Registering for DeerHacks
	AppliedDiscord     DiscordRole = "1192983763995602964" // Application Submitted
	SelectedDiscord    DiscordRole = "1192983889807933490" // Selected to Attend DeerHacks, Pending Confirmation
	AcceptedDiscord    DiscordRole = "1192984014571704330" // Accepted to Attend DeerHacks
	AttendedDiscord    DiscordRole = "1192984114987548722" // Signed in at DeerHacks
	VolunteerDiscord   DiscordRole = "1100893133581070476" // Volunteer at DeerHacks
	DefaultDiscord     DiscordRole = "1085682655326130316" // Status unknown
)

func StatusToDiscordRole

func StatusToDiscordRole(s models.Status) DiscordRole

type RateLimitResponse

type RateLimitResponse struct {
	Message    string  `json:"message"`
	RetryAfter float64 `json:"retry_after"`
	Global     bool    `json:"global"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL