Documentation ¶
Index ¶
- Constants
- Variables
- func PlaceInBackticks(s string) string
- func RegisterAppCommand(cmd *dg.ApplicationCommand)
- type AuthorInteraction
- func (a *AuthorInteraction) Admin() (bool, error)
- func (a *AuthorInteraction) BotAdmin() (bool, error)
- func (a *AuthorInteraction) DisplayName() (string, error)
- func (a *AuthorInteraction) ID() (string, error)
- func (a *AuthorInteraction) Mention() (string, error)
- func (a *AuthorInteraction) Moderator() (bool, error)
- func (a *AuthorInteraction) Name() (string, error)
- func (a *AuthorInteraction) Scope() (int64, error)
- func (a *AuthorInteraction) Subscriber() (bool, error)
- type AuthorMessage
- func (a *AuthorMessage) Admin() (bool, error)
- func (a *AuthorMessage) BotAdmin() (bool, error)
- func (a *AuthorMessage) DisplayName() (string, error)
- func (a *AuthorMessage) ID() (string, error)
- func (a *AuthorMessage) Mention() (string, error)
- func (a *AuthorMessage) Moderator() (bool, error)
- func (a *AuthorMessage) Name() (string, error)
- func (a *AuthorMessage) Scope() (int64, error)
- func (a *AuthorMessage) Subscriber() (bool, error)
- 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) Leave() error
- func (i *InteractionCreate) Natural(msg any, urr core.Urr) (*core.Message, 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, urr core.Urr) (*core.Message, error)
- func (i *InteractionCreate) PlaceID(s string) (string, error)
- func (i *InteractionCreate) QuoteCommand(cmd string) string
- func (i *InteractionCreate) Say(buf io.Reader, s <-chan core.AudioState) error
- func (i *InteractionCreate) Send(msg any, urr core.Urr) (*core.Message, error)
- func (i *InteractionCreate) Write(msg any, urr core.Urr) (*core.Message, error)
- type Message
- func (d *Message) Natural(msg any, urr core.Urr) (*core.Message, error)
- 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, urr core.Urr) (*core.Message, error)
- func (d *Message) PlaceID(s string) (string, error)
- func (d *Message) QuoteCommand(cmd string) string
- func (d *Message) Send(msg any, urr core.Urr) (*core.Message, error)
- func (d *Message) Write(msg any, urr core.Urr) (*core.Message, error)
- type MessageCreate
- func (d *MessageCreate) Natural(msg any, urr core.Urr) (*core.Message, error)
- 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, urr core.Urr) (*core.Message, error)
- func (d *MessageCreate) PlaceID(s string) (string, error)
- func (d *MessageCreate) QuoteCommand(cmd string) string
- func (d *MessageCreate) Send(msg any, urr core.Urr) (*core.Message, error)
- func (d *MessageCreate) Write(msg any, urr core.Urr) (*core.Message, error)
- type MessageEdit
- func (d *MessageEdit) Natural(msg any, urr core.Urr) (*core.Message, error)
- 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, urr core.Urr) (*core.Message, error)
- func (d *MessageEdit) PlaceID(s string) (string, error)
- func (d *MessageEdit) QuoteCommand(cmd string) string
- func (d *MessageEdit) Send(msg any, urr core.Urr) (*core.Message, error)
- func (d *MessageEdit) Write(msg any, urr core.Urr) (*core.Message, error)
- type Speaker
- func (sp *Speaker) AuthorConnected() (bool, error)
- func (sp *Speaker) AuthorDeafened() (bool, error)
- func (*Speaker) Channels() int
- func (*Speaker) Enabled() bool
- func (*Speaker) FrameRate() int
- func (sp *Speaker) Join() error
- func (sp *Speaker) Leave() error
- func (sp *Speaker) Say(buf io.Reader, s <-chan core.AudioState) error
Constants ¶
View Source
const Type = 1 << 0
Variables ¶
View Source
var ( Client *dgc.Client Admins []string EmbedColor = 0xAD88E0 EmbedErrColor = 0xB14D4D )
View Source
var Frontend = &frontend{}
Functions ¶
func PlaceInBackticks ¶
func RegisterAppCommand ¶
func RegisterAppCommand(cmd *dg.ApplicationCommand)
Types ¶
type AuthorInteraction ¶
type AuthorInteraction struct { GuildID string Member *dg.Member User *dg.User // contains filtered or unexported fields }
AuthorInteraction implements the core.Personifier interface for interactions
func (*AuthorInteraction) Admin ¶
func (a *AuthorInteraction) Admin() (bool, error)
func (*AuthorInteraction) BotAdmin ¶
func (a *AuthorInteraction) BotAdmin() (bool, error)
func (*AuthorInteraction) DisplayName ¶
func (a *AuthorInteraction) DisplayName() (string, error)
func (*AuthorInteraction) ID ¶
func (a *AuthorInteraction) ID() (string, error)
func (*AuthorInteraction) Mention ¶
func (a *AuthorInteraction) Mention() (string, error)
func (*AuthorInteraction) Moderator ¶
func (a *AuthorInteraction) Moderator() (bool, error)
func (*AuthorInteraction) Name ¶
func (a *AuthorInteraction) Name() (string, error)
func (*AuthorInteraction) Scope ¶
func (a *AuthorInteraction) Scope() (int64, error)
func (*AuthorInteraction) Subscriber ¶
func (a *AuthorInteraction) Subscriber() (bool, error)
type AuthorMessage ¶
type AuthorMessage struct { GuildID string Author *dg.User Member *dg.Member // contains filtered or unexported fields }
AuthorMessage implements the core.Personifier interface
func (*AuthorMessage) Admin ¶
func (a *AuthorMessage) Admin() (bool, error)
func (*AuthorMessage) BotAdmin ¶
func (a *AuthorMessage) BotAdmin() (bool, error)
func (*AuthorMessage) DisplayName ¶
func (a *AuthorMessage) DisplayName() (string, error)
func (*AuthorMessage) ID ¶
func (a *AuthorMessage) ID() (string, error)
func (*AuthorMessage) Mention ¶
func (a *AuthorMessage) Mention() (string, error)
func (*AuthorMessage) Moderator ¶
func (a *AuthorMessage) Moderator() (bool, error)
func (*AuthorMessage) Name ¶
func (a *AuthorMessage) Name() (string, error)
func (*AuthorMessage) Scope ¶
func (a *AuthorMessage) Scope() (int64, error)
func (*AuthorMessage) Subscriber ¶
func (a *AuthorMessage) Subscriber() (bool, error)
type Here ¶
type Here struct { ChannelID string GuildID string Author core.Personifier // contains filtered or unexported fields }
Here implements the core.Placer 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) Leave ¶
func (i *InteractionCreate) Leave() error
func (*InteractionCreate) PersonID ¶
func (i *InteractionCreate) PersonID(s, placeID string) (string, error)
func (*InteractionCreate) QuoteCommand ¶
func (i *InteractionCreate) QuoteCommand(cmd string) string
func (*InteractionCreate) Say ¶
func (i *InteractionCreate) Say(buf io.Reader, s <-chan core.AudioState) error
type Message ¶
type Message struct { Message *dg.Message VC *dg.VoiceConnection }
func (*Message) QuoteCommand ¶
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) QuoteCommand ¶
func (d *MessageCreate) QuoteCommand(cmd string) string
type MessageEdit ¶
type MessageEdit struct { Message *dg.MessageUpdate VC *dg.VoiceConnection }
func (*MessageEdit) QuoteCommand ¶
func (d *MessageEdit) QuoteCommand(cmd string) string
type Speaker ¶
type Speaker struct { Author core.Personifier Here core.Placer VC *dg.VoiceConnection }
func (*Speaker) AuthorConnected ¶
func (*Speaker) AuthorDeafened ¶
Click to show internal directories.
Click to hide internal directories.