Documentation ¶
Index ¶
- Constants
- func New() criuscommander.Platform
- type Discord
- func (d *Discord) Close() error
- func (d *Discord) GenHelp(data interface{}, m *criuscommander.MessageContext) error
- func (d *Discord) GetClient() interface{}
- func (d *Discord) GetPlatformType() criuscommander.PlatformType
- func (d *Discord) JoinChannel(_ interface{}) error
- func (d *Discord) LeaveChannel(_ interface{}) error
- func (d *Discord) Open(ctx context.Context) error
- func (d *Discord) RegisterEvents(publisher EventBus.BusPublisher) error
- func (d *Discord) RegisterMessageHandler(fn func(string, *criuscommander.MessageContext)) error
- func (d *Discord) Setup(token string) error
Constants ¶
View Source
const ( EventChannelCreate = "Commander.Discord.Channel:Create" EventChannelDelete = "Commander.Discord.Channel:Delete" EventChannelUpdate = "Commander.Discord.Channel:Update" EventChannelPinsUpdate = "Commander.Discord.Channel.Pins:Update" EventGuildCreate = "Commander.Discord.Guild:Create" EventGuildDelete = "Commander.Discord.Guild:Delete" EventGuildUpdate = "Commander.Discord.Guild:Update" EventGuildBanAdd = "Commander.Discord.Guild.Ban:Add" EventGuildBanRemove = "Commander.Discord.Guild.Ban:Remove" EventGuildEmojiUpdate = "Commander.Discord.Guild.Emoji:Update" EventGuildIntegrationsUpdate = "Commander.Discord.Guild.Integrations:Update" EventGuildMemberAdd = "Commander.Discord.Guild.Member:Add" EventGuildMemberRemove = "Commander.Discord.Guild.Member:Remove" EventGuildMemberUpdate = "Commander.Discord.Guild.Member:Update" EventGuildRoleCreate = "Commander.Discord.Guild.Role:Create" EventGuildRoleDelete = "Commander.Discord.Guild.Role:Delete" EventGuildRoleUpdate = "Commander.Discord.Guild.Role:Update" EventMessageDelete = "Commander.Discord.Message:Delete" EventMessageDeleteBulk = "Commander.Discord.Message:DeleteBulk" EventMessageUpdate = "Commander.Discord.Message:Update" EventMessageReactionAdd = "Commander.Discord.Message.Reaction:Add" EventMessageReactionRemove = "Commander.Discord.Message.Reaction:Remove" EventMessageReactionRemoveAll = "Commander.Discord.Message.Reaction:RemoveAll" EventPresenceUpdate = "Commander.Discord.Presence:Update" EventPresencesReplace = "Commander.Discord.Presences:Replace" EventRelationshipAdd = "Commander.Discord.Relationship:Add" EventRelationshipRemove = "Commander.Discord.Relationship:Remove" EventTypingStart = "Commander.Discord.Typing:Start" EventUserGuildSettingsUpdate = "Commander.Discord.User.Guild.Settings:Update" EventUserNoteUpdate = "Commander.Discord.User.Note:Update" EventUserSettingsUpdate = "Commander.Discord.User.Settings:Update" EventUserUpdate = "Commander.Discord.User:Update" EventVoiceServerUpdate = "Commander.Discord.Voice.Server:Update" EventVoiceStateUpdate = "Commander.Discord.Voice.State:Update" EventWebhooksUpdate = "Commander.Discord.Webhooks:Update" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Discord ¶
type Discord struct {
// contains filtered or unexported fields
}
func (*Discord) GetPlatformType ¶
func (d *Discord) GetPlatformType() criuscommander.PlatformType
func (*Discord) JoinChannel ¶
isn't supported under discord.
func (*Discord) LeaveChannel ¶
isn't supported under discord.
func (*Discord) RegisterEvents ¶
func (d *Discord) RegisterEvents(publisher EventBus.BusPublisher) error
func (*Discord) RegisterMessageHandler ¶
Click to show internal directories.
Click to hide internal directories.