Versions in this module Expand all Collapse all v0 v0.0.9 Apr 14, 2024 v0.0.8 Apr 6, 2024 v0.0.7 Feb 24, 2024 Changes in this version + type Event struct + Channel *channel.Channel + Guild *guild.Guild + Id int64 + Login *login.Login + Member *guildmember.GuildMember + Message *message.Message + Operator *user.User + Platform string + Role *guildrole.GuildRole + SelfId string + Timestamp int64 + Type string + User *user.User + type EventHandler struct + EventHandler EventHandlerCallback + EventType string + type EventHandlerCallback func(e Event) error + type EventInterface interface + type SatoriChannelEvent interface + func NewSatoriChannelEvent() (SatoriChannelEvent, error) + type SatoriEvent interface + StartWithCtx func(ctx context.Context) error + func NewSatorEventByConfig(conf config.SatoriConfig) (SatoriEvent, error) + type SatoriEventImpl struct + func (s *SatoriEventImpl) StartWithCtx(ctx context.Context) error + type SatoriGuildEvent interface + ListenGuildAdded func(callback EventHandlerCallback) + ListenGuildRemoved func(callback EventHandlerCallback) + ListenGuildRequest func(callback EventHandlerCallback) + ListenGuildUpdated func(callback EventHandlerCallback) + func NewSatoriGuildEvent() (SatoriGuildEvent, error) + type SatoriGuildMemberEvent interface + ListenGuildMemberAdded func(callback EventHandlerCallback) + ListenGuildMemberRemoved func(callback EventHandlerCallback) + ListenGuildMemberRequest func(callback EventHandlerCallback) + ListenGuildMemberUpdated func(callback EventHandlerCallback) + func NewSatoriGuildMemberEvent() (SatoriGuildMemberEvent, error) + type SatoriGuildRoleEvent interface + ListenGuildRoleCreated func(callback EventHandlerCallback) + ListenGuildRoleDeleted func(callback EventHandlerCallback) + ListenGuildRoleUpdated func(callback EventHandlerCallback) + func NewSatoriGuildRoleEvent() (SatoriGuildRoleEvent, error) + type SatoriLoginEvent interface + ListenLoginAdded func(callback EventHandlerCallback) + ListenLoginRemoved func(callback EventHandlerCallback) + ListenLoginUpdated func(callback EventHandlerCallback) + func NewSatoriLoginEvent() (SatoriLoginEvent, error) + type SatoriMessageEvent interface + ListenMessageCreated func(callback EventHandlerCallback) + ListenMessageDelete func(callback EventHandlerCallback) + ListenMessageUpdated func(callback EventHandlerCallback) + func NewSatoriMessageEvent() (SatoriMessageEvent, error) + type SatoriReactionEvent interface + ListenReactionAdded func(callback EventHandlerCallback) + ListenReactionRemoved func(callback EventHandlerCallback) + func NewSatoriReactionEvent() (SatoriReactionEvent, error) + type SatoriUserEvent interface + ListenFriendRequest func(callback EventHandlerCallback) + func NewSatoriUserEvent() (SatoriUserEvent, error) + type SignInfo struct + Body interface{} + Op uint64