guildroles

package
v0.0.0-...-d9b1479 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEach

func ForEach(fn func(*GuildRole))

ForEach calls the given function for every guildRole

func Initialize

func Initialize(session *discordgo.Session) error

Initialize loads active guilds and registers event handlers to keep them in sync

Types

type GuildRole

type GuildRole struct {
	GuildID string
	*discordgo.Role
}

GuildRole holds a guild and its corresponding rainbow role

func FindByGuildID

func FindByGuildID(guildID string) (*GuildRole, error)

FindByGuildID returns the GuildRole for the given guildID

Jump to

Keyboard shortcuts

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