use of org.javacord.core.util.handler.message.MessageCreateHandler in project Javacord by BtoBastian.
the class DiscordWebSocketAdapter method registerHandlers.
/**
* Registers all handlers.
*/
private void registerHandlers() {
// general
addHandler(new ReadyHandler(api));
addHandler(new ResumedHandler(api));
// server
addHandler(new GuildBanAddHandler(api));
addHandler(new GuildBanRemoveHandler(api));
addHandler(new GuildCreateHandler(api));
addHandler(new GuildDeleteHandler(api));
addHandler(new GuildMembersChunkHandler(api));
addHandler(new GuildMemberAddHandler(api));
addHandler(new GuildMemberRemoveHandler(api));
addHandler(new GuildMemberUpdateHandler(api));
addHandler(new GuildUpdateHandler(api));
addHandler(new VoiceServerUpdateHandler(api));
addHandler(new VoiceStateUpdateHandler(api));
// role
addHandler(new GuildRoleCreateHandler(api));
addHandler(new GuildRoleDeleteHandler(api));
addHandler(new GuildRoleUpdateHandler(api));
// emoji
addHandler(new GuildEmojisUpdateHandler(api));
// sticker
addHandler(new GuildStickersUpdateHandler(api));
// channel
addHandler(new ChannelCreateHandler(api));
addHandler(new ChannelDeleteHandler(api));
addHandler(new ChannelPinsUpdateHandler(api));
addHandler(new ChannelUpdateHandler(api));
addHandler(new WebhooksUpdateHandler(api));
// thread
addHandler(new ThreadCreateHandler(api));
addHandler(new ThreadDeleteHandler(api));
addHandler(new ThreadListSyncHandler(api));
addHandler(new ThreadMembersUpdateHandler(api));
addHandler(new ThreadUpdateHandler(api));
// user
addHandler(new PresencesReplaceHandler(api));
addHandler(new PresenceUpdateHandler(api));
addHandler(new TypingStartHandler(api));
addHandler(new UserUpdateHandler(api));
// message
addHandler(new MessageCreateHandler(api));
addHandler(new MessageDeleteBulkHandler(api));
addHandler(new MessageDeleteHandler(api));
addHandler(new MessageUpdateHandler(api));
// reaction
addHandler(new MessageReactionAddHandler(api));
addHandler(new MessageReactionRemoveAllHandler(api));
addHandler(new MessageReactionRemoveHandler(api));
// invite
addHandler(new InviteCreateHandler(api));
addHandler(new InviteDeleteHandler(api));
// command
addHandler(new InteractionCreateHandler(api));
}
Aggregations