Documentation ¶
Index ¶
- Constants
- Variables
- func Init(wgInit, wgStop *sync.WaitGroup, stop chan struct{}, token string)
- func PlaceInBackticks(s string) string
- func RegisterAppCommand(cmd *dg.ApplicationCommand)
- type InteractionCreate
- func (i *InteractionCreate) Admin() bool
- func (i *InteractionCreate) BotAdmin() bool
- func (i *InteractionCreate) Mod() bool
- func (i *InteractionCreate) Parse() (*core.Message, error)
- func (i *InteractionCreate) Person(id string) (int64, error)
- func (i *InteractionCreate) PersonID(s, placeID string) (string, error)
- func (i *InteractionCreate) Ping(msg any, usrErr error) (*core.Message, error)
- func (i *InteractionCreate) PlaceExact(id string) (int64, error)
- func (i *InteractionCreate) PlaceID(s string) (string, error)
- func (i *InteractionCreate) PlaceLogical(id string) (int64, error)
- func (i *InteractionCreate) Send(msg any, usrErr error) (*core.Message, error)
- func (i *InteractionCreate) Usage(usage string) any
- func (i *InteractionCreate) Write(msg any, usrErr error) (*core.Message, error)
- type Message
- func (d *Message) Admin() bool
- func (d *Message) BotAdmin() bool
- func (d *Message) Mod() bool
- func (d *Message) Parse() (*core.Message, error)
- func (d *Message) Person(id string) (int64, error)
- func (d *Message) PersonID(s, placeID string) (string, error)
- func (d *Message) Ping(msg any, usrErr error) (*core.Message, error)
- func (d *Message) PlaceExact(id string) (int64, error)
- func (d *Message) PlaceID(s string) (string, error)
- func (d *Message) PlaceLogical(id string) (int64, error)
- func (d *Message) Send(msg any, usrErr error) (*core.Message, error)
- func (d *Message) Usage(usage string) any
- func (d *Message) Write(msg any, usrErr error) (*core.Message, error)
- type MessageCreate
- func (d *MessageCreate) Admin() bool
- func (d *MessageCreate) BotAdmin() bool
- func (d *MessageCreate) Mod() bool
- func (d *MessageCreate) Parse() (*core.Message, error)
- func (d *MessageCreate) Person(id string) (int64, error)
- func (d *MessageCreate) PersonID(s, placeID string) (string, error)
- func (d *MessageCreate) Ping(msg any, usrErr error) (*core.Message, error)
- func (d *MessageCreate) PlaceExact(id string) (int64, error)
- func (d *MessageCreate) PlaceID(s string) (string, error)
- func (d *MessageCreate) PlaceLogical(id string) (int64, error)
- func (d *MessageCreate) Send(msg any, usrErr error) (*core.Message, error)
- func (d *MessageCreate) Usage(usage string) any
- func (d *MessageCreate) Write(msg any, usrErr error) (*core.Message, error)
- type MessageEdit
- func (d *MessageEdit) Admin() bool
- func (d *MessageEdit) BotAdmin() bool
- func (d *MessageEdit) Mod() bool
- func (d *MessageEdit) Parse() (*core.Message, error)
- func (d *MessageEdit) Person(id string) (int64, error)
- func (d *MessageEdit) PersonID(s, placeID string) (string, error)
- func (d *MessageEdit) Ping(msg any, usrErr error) (*core.Message, error)
- func (d *MessageEdit) PlaceExact(id string) (int64, error)
- func (d *MessageEdit) PlaceID(s string) (string, error)
- func (d *MessageEdit) PlaceLogical(id string) (int64, error)
- func (d *MessageEdit) Send(msg any, usrErr error) (*core.Message, error)
- func (d *MessageEdit) Usage(usage string) any
- func (d *MessageEdit) Write(msg any, usrErr error) (*core.Message, error)
Constants ¶
View Source
const Type = 1 << 0
Variables ¶
View Source
var ( Session *dg.Session Admins []string EmbedColor = 0xAD88E0 EmbedErrColor = 0xB14D4D )
Functions ¶
func PlaceInBackticks ¶
func RegisterAppCommand ¶
func RegisterAppCommand(cmd *dg.ApplicationCommand)
Types ¶
type InteractionCreate ¶
type InteractionCreate struct { Session *dg.Session Interaction *dg.InteractionCreate Data *dg.ApplicationCommandInteractionData }
func (*InteractionCreate) Admin ¶
func (i *InteractionCreate) Admin() bool
func (*InteractionCreate) BotAdmin ¶
func (i *InteractionCreate) BotAdmin() bool
func (*InteractionCreate) Mod ¶
func (i *InteractionCreate) Mod() bool
func (*InteractionCreate) PersonID ¶
func (i *InteractionCreate) PersonID(s, placeID string) (string, error)
func (*InteractionCreate) PlaceExact ¶
func (i *InteractionCreate) PlaceExact(id string) (int64, error)
func (*InteractionCreate) PlaceLogical ¶
func (i *InteractionCreate) PlaceLogical(id string) (int64, error)
func (*InteractionCreate) Usage ¶
func (i *InteractionCreate) Usage(usage string) any
type MessageCreate ¶
type MessageCreate struct { Session *dg.Session Message *dg.MessageCreate }
func (*MessageCreate) Admin ¶
func (d *MessageCreate) Admin() bool
func (*MessageCreate) BotAdmin ¶
func (d *MessageCreate) BotAdmin() bool
func (*MessageCreate) Mod ¶
func (d *MessageCreate) Mod() bool
func (*MessageCreate) PersonID ¶
func (d *MessageCreate) PersonID(s, placeID string) (string, error)
func (*MessageCreate) PlaceExact ¶
func (d *MessageCreate) PlaceExact(id string) (int64, error)
func (*MessageCreate) PlaceLogical ¶
func (d *MessageCreate) PlaceLogical(id string) (int64, error)
func (*MessageCreate) Usage ¶
func (d *MessageCreate) Usage(usage string) any
type MessageEdit ¶
type MessageEdit struct { Session *dg.Session Message *dg.MessageUpdate }
func (*MessageEdit) Admin ¶
func (d *MessageEdit) Admin() bool
func (*MessageEdit) BotAdmin ¶
func (d *MessageEdit) BotAdmin() bool
func (*MessageEdit) Mod ¶
func (d *MessageEdit) Mod() bool
func (*MessageEdit) PlaceExact ¶
func (d *MessageEdit) PlaceExact(id string) (int64, error)
func (*MessageEdit) PlaceLogical ¶
func (d *MessageEdit) PlaceLogical(id string) (int64, error)
func (*MessageEdit) Usage ¶
func (d *MessageEdit) Usage(usage string) any
Click to show internal directories.
Click to hide internal directories.