utilities

package module
v0.0.0-...-63e296e Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

disgord-utils

A utilities package for Disgord, a interaction framework for the Discord API.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(arr []interface{}, value interface{}) bool

func DiscordIDToString

func DiscordIDToString(ID disgord.Snowflake) string

func ListRoles

func ListRoles(guild *disgord.Guild)

NOTE: THIS USES DISCORD TEXT MARKDOWN FORMATTING

NOTE: This ONLY displays 10 roles per "page".

func SearchRole

func SearchRole(guild *disgord.Guild, ID disgord.Snowflake) (error, *disgord.Role)

Types

type IListRole

type IListRole struct {
	// Display for each role: <Mention> (`<ID>`)
	MentionAndID []string
	// Display for each role: <Name> (`<ID>`)
	NameAndID []string
}

Jump to

Keyboard shortcuts

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