Documentation ¶
Index ¶
- Constants
- Variables
- func PlaceInBackticks(s string) string
- func RegisterAppCommand(cmd *dg.ApplicationCommand)
- type AuthorInteraction
- func (a *AuthorInteraction) Admin() bool
- func (a *AuthorInteraction) BotAdmin() bool
- func (a *AuthorInteraction) DisplayName() string
- func (a *AuthorInteraction) ID() string
- func (a *AuthorInteraction) Mention() string
- func (a *AuthorInteraction) Mod() bool
- func (a *AuthorInteraction) Name() string
- func (a *AuthorInteraction) Scope() (int64, error)
- func (a *AuthorInteraction) Subscriber() bool
- type AuthorMessage
- func (a *AuthorMessage) Admin() bool
- func (a *AuthorMessage) BotAdmin() bool
- func (a *AuthorMessage) DisplayName() string
- func (a *AuthorMessage) ID() string
- func (a *AuthorMessage) Mention() string
- func (a *AuthorMessage) Mod() bool
- func (a *AuthorMessage) Name() string
- func (a *AuthorMessage) Scope() (int64, error)
- func (a *AuthorMessage) Subscriber() bool
- type Here
- type InteractionCreate
- func (i *InteractionCreate) AuthorConnected() (bool, error)
- func (i *InteractionCreate) AuthorDeafened() (bool, error)
- func (i *InteractionCreate) Channels() int
- func (i *InteractionCreate) Enabled() bool
- func (i *InteractionCreate) FrameRate() int
- func (i *InteractionCreate) Join() error
- 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) Say(buf io.Reader, s *core.AudioState) 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) 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) 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) 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)
- type Speaker
Constants ¶
View Source
const Type = 1 << 0
Variables ¶
View Source
var ( Session *dg.Session Admins []string EmbedColor = 0xAD88E0 EmbedErrColor = 0xB14D4D )
View Source
var Frontend = &frontend{}
Functions ¶
func PlaceInBackticks ¶
func RegisterAppCommand ¶
func RegisterAppCommand(cmd *dg.ApplicationCommand)
Types ¶
type AuthorInteraction ¶
Implement the core.Author interface for interactions
func (*AuthorInteraction) Admin ¶
func (a *AuthorInteraction) Admin() bool
func (*AuthorInteraction) BotAdmin ¶
func (a *AuthorInteraction) BotAdmin() bool
func (*AuthorInteraction) DisplayName ¶
func (a *AuthorInteraction) DisplayName() string
func (*AuthorInteraction) ID ¶
func (a *AuthorInteraction) ID() string
func (*AuthorInteraction) Mention ¶
func (a *AuthorInteraction) Mention() string
func (*AuthorInteraction) Mod ¶
func (a *AuthorInteraction) Mod() bool
func (*AuthorInteraction) Name ¶
func (a *AuthorInteraction) Name() string
func (*AuthorInteraction) Scope ¶
func (a *AuthorInteraction) Scope() (int64, error)
func (*AuthorInteraction) Subscriber ¶
func (a *AuthorInteraction) Subscriber() bool
type AuthorMessage ¶
Implement the core.Author interface for normal messages
func (*AuthorMessage) Admin ¶
func (a *AuthorMessage) Admin() bool
func (*AuthorMessage) BotAdmin ¶
func (a *AuthorMessage) BotAdmin() bool
func (*AuthorMessage) DisplayName ¶
func (a *AuthorMessage) DisplayName() string
func (*AuthorMessage) ID ¶
func (a *AuthorMessage) ID() string
func (*AuthorMessage) Mention ¶
func (a *AuthorMessage) Mention() string
func (*AuthorMessage) Mod ¶
func (a *AuthorMessage) Mod() bool
func (*AuthorMessage) Name ¶
func (a *AuthorMessage) Name() string
func (*AuthorMessage) Scope ¶
func (a *AuthorMessage) Scope() (int64, error)
func (*AuthorMessage) Subscriber ¶
func (a *AuthorMessage) Subscriber() bool
type Here ¶
Here implements the core.Here interface.
func (*Here) ScopeExact ¶
func (*Here) ScopeLogical ¶
type InteractionCreate ¶
type InteractionCreate struct { Interaction *dg.InteractionCreate Data *dg.ApplicationCommandInteractionData VC *dg.VoiceConnection }
func (*InteractionCreate) AuthorConnected ¶
func (i *InteractionCreate) AuthorConnected() (bool, error)
func (*InteractionCreate) AuthorDeafened ¶
func (i *InteractionCreate) AuthorDeafened() (bool, error)
func (*InteractionCreate) Channels ¶
func (i *InteractionCreate) Channels() int
func (*InteractionCreate) Enabled ¶
func (i *InteractionCreate) Enabled() bool
func (*InteractionCreate) FrameRate ¶
func (i *InteractionCreate) FrameRate() int
func (*InteractionCreate) Join ¶
func (i *InteractionCreate) Join() error
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) Say ¶
func (i *InteractionCreate) Say(buf io.Reader, s *core.AudioState) error
func (*InteractionCreate) Usage ¶
func (i *InteractionCreate) Usage(usage string) any
type MessageCreate ¶
type MessageCreate struct { Message *dg.MessageCreate VC *dg.VoiceConnection }
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 { Message *dg.MessageUpdate VC *dg.VoiceConnection }
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
type Speaker ¶
type Speaker struct { GuildID string AuthorID string VC *dg.VoiceConnection }
func (*Speaker) AuthorConnected ¶
func (*Speaker) AuthorDeafened ¶
Click to show internal directories.
Click to hide internal directories.