functionality

package
v0.0.0-...-37b14fa Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasElevatedPermissions

func HasElevatedPermissions(s *discordgo.Session, userID string, guildID string) bool

HasElevatedPermissions checks if a user has admin permissions or is a privileged role

func HasPrivilegedPermissions

func HasPrivilegedPermissions(m *discordgo.Member) bool

HasPrivilegedPermissions checks if a user has a privileged role in a given server

func MemberIsAdmin

func MemberIsAdmin(s *discordgo.Session, guildID string, mem *discordgo.Member, permission int64) (bool, error)

MemberIsAdmin checks if member has admin permissions

func SendServers

func SendServers(guildCountStr string, s *discordgo.Session)

SendServers sends number of servers via post request

Types

type Permission

type Permission int
const (
	User Permission = iota
	Mod
	Admin
	Owner
)

Jump to

Keyboard shortcuts

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