discord

package
v0.0.0-...-a6a1fe7 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedRoles map[string]struct{}
View Source
var Commands map[string]interface{}
View Source
var GeneralID string
View Source
var ServerRoles map[string]*discordgo.Role

Functions

func CreateClient

func CreateClient(token, guildID, clientID, clientSecret string) (*client, error)

func HandleMessage

func HandleMessage(s *discordgo.Session, m *discordgo.MessageCreate)

HandleMessage is called by the AddHandler function everytime a new message is posted in any channel the bot has access too

func MemberJoin

func MemberJoin(s *discordgo.Session, member *discordgo.GuildMemberAdd)

Types

This section is empty.

Jump to

Keyboard shortcuts

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