cmds

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCompany

func AddCompany(dg *discordgo.Session, guildName, parentChannel, channelName string) error

func AddUserToRole

func AddUserToRole(dg *discordgo.Session, guildName, roleName, username string) error

func NewCmdAddCompany

func NewCmdAddCompany() *cobra.Command

discord-mgr add-company --guild=appscode --role=company_a

func NewCmdAddMember

func NewCmdAddMember() *cobra.Command

discord-mgr add-role --guild=appscode --role=company_a --username=tamal

func NewCmdRemoveMember

func NewCmdRemoveMember() *cobra.Command

discord-mgr remove-role --guild=appscode --role=company_a --username=tamal

func NewRootCmd

func NewRootCmd() *cobra.Command

func RemoveUserFromRole

func RemoveUserFromRole(dg *discordgo.Session, guildName, roleName, username string) error

Types

type ErrNotFound

type ErrNotFound struct {
	Type string
	Name string
}

func (ErrNotFound) Error

func (e ErrNotFound) Error() string

Jump to

Keyboard shortcuts

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