Search in sources :

Example 1 with GuildRoleUpdateHandler

use of org.javacord.core.util.handler.guild.role.GuildRoleUpdateHandler 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));
}
Also used : VoiceStateUpdateHandler(org.javacord.core.util.handler.guild.VoiceStateUpdateHandler) PresenceUpdateHandler(org.javacord.core.util.handler.user.PresenceUpdateHandler) GuildMemberUpdateHandler(org.javacord.core.util.handler.guild.GuildMemberUpdateHandler) ThreadDeleteHandler(org.javacord.core.util.handler.channel.thread.ThreadDeleteHandler) GuildRoleCreateHandler(org.javacord.core.util.handler.guild.role.GuildRoleCreateHandler) MessageUpdateHandler(org.javacord.core.util.handler.message.MessageUpdateHandler) ThreadCreateHandler(org.javacord.core.util.handler.channel.thread.ThreadCreateHandler) GuildBanAddHandler(org.javacord.core.util.handler.guild.GuildBanAddHandler) ChannelPinsUpdateHandler(org.javacord.core.util.handler.channel.ChannelPinsUpdateHandler) ThreadUpdateHandler(org.javacord.core.util.handler.channel.thread.ThreadUpdateHandler) UserUpdateHandler(org.javacord.core.util.handler.user.UserUpdateHandler) InteractionCreateHandler(org.javacord.core.util.handler.interaction.InteractionCreateHandler) GuildDeleteHandler(org.javacord.core.util.handler.guild.GuildDeleteHandler) GuildRoleDeleteHandler(org.javacord.core.util.handler.guild.role.GuildRoleDeleteHandler) MessageCreateHandler(org.javacord.core.util.handler.message.MessageCreateHandler) ResumedHandler(org.javacord.core.util.handler.ResumedHandler) GuildMembersChunkHandler(org.javacord.core.util.handler.guild.GuildMembersChunkHandler) ChannelDeleteHandler(org.javacord.core.util.handler.channel.ChannelDeleteHandler) ThreadListSyncHandler(org.javacord.core.util.handler.channel.thread.ThreadListSyncHandler) MessageReactionRemoveHandler(org.javacord.core.util.handler.message.reaction.MessageReactionRemoveHandler) ReadyHandler(org.javacord.core.util.handler.ReadyHandler) InviteCreateHandler(org.javacord.core.util.handler.channel.invite.InviteCreateHandler) GuildBanRemoveHandler(org.javacord.core.util.handler.guild.GuildBanRemoveHandler) GuildEmojisUpdateHandler(org.javacord.core.util.handler.guild.GuildEmojisUpdateHandler) GuildCreateHandler(org.javacord.core.util.handler.guild.GuildCreateHandler) WebhooksUpdateHandler(org.javacord.core.util.handler.channel.WebhooksUpdateHandler) PresencesReplaceHandler(org.javacord.core.util.handler.user.PresencesReplaceHandler) GuildMemberAddHandler(org.javacord.core.util.handler.guild.GuildMemberAddHandler) VoiceServerUpdateHandler(org.javacord.core.util.handler.guild.VoiceServerUpdateHandler) GuildRoleUpdateHandler(org.javacord.core.util.handler.guild.role.GuildRoleUpdateHandler) TypingStartHandler(org.javacord.core.util.handler.user.TypingStartHandler) GuildUpdateHandler(org.javacord.core.util.handler.guild.GuildUpdateHandler) GuildMemberRemoveHandler(org.javacord.core.util.handler.guild.GuildMemberRemoveHandler) MessageReactionAddHandler(org.javacord.core.util.handler.message.reaction.MessageReactionAddHandler) MessageReactionRemoveAllHandler(org.javacord.core.util.handler.message.reaction.MessageReactionRemoveAllHandler) ChannelUpdateHandler(org.javacord.core.util.handler.channel.ChannelUpdateHandler) MessageDeleteHandler(org.javacord.core.util.handler.message.MessageDeleteHandler) ThreadMembersUpdateHandler(org.javacord.core.util.handler.channel.thread.ThreadMembersUpdateHandler) GuildStickersUpdateHandler(org.javacord.core.util.handler.guild.GuildStickersUpdateHandler) ChannelCreateHandler(org.javacord.core.util.handler.channel.ChannelCreateHandler) InviteDeleteHandler(org.javacord.core.util.handler.channel.invite.InviteDeleteHandler) MessageDeleteBulkHandler(org.javacord.core.util.handler.message.MessageDeleteBulkHandler)

Aggregations

ReadyHandler (org.javacord.core.util.handler.ReadyHandler)1 ResumedHandler (org.javacord.core.util.handler.ResumedHandler)1 ChannelCreateHandler (org.javacord.core.util.handler.channel.ChannelCreateHandler)1 ChannelDeleteHandler (org.javacord.core.util.handler.channel.ChannelDeleteHandler)1 ChannelPinsUpdateHandler (org.javacord.core.util.handler.channel.ChannelPinsUpdateHandler)1 ChannelUpdateHandler (org.javacord.core.util.handler.channel.ChannelUpdateHandler)1 WebhooksUpdateHandler (org.javacord.core.util.handler.channel.WebhooksUpdateHandler)1 InviteCreateHandler (org.javacord.core.util.handler.channel.invite.InviteCreateHandler)1 InviteDeleteHandler (org.javacord.core.util.handler.channel.invite.InviteDeleteHandler)1 ThreadCreateHandler (org.javacord.core.util.handler.channel.thread.ThreadCreateHandler)1 ThreadDeleteHandler (org.javacord.core.util.handler.channel.thread.ThreadDeleteHandler)1 ThreadListSyncHandler (org.javacord.core.util.handler.channel.thread.ThreadListSyncHandler)1 ThreadMembersUpdateHandler (org.javacord.core.util.handler.channel.thread.ThreadMembersUpdateHandler)1 ThreadUpdateHandler (org.javacord.core.util.handler.channel.thread.ThreadUpdateHandler)1 GuildBanAddHandler (org.javacord.core.util.handler.guild.GuildBanAddHandler)1 GuildBanRemoveHandler (org.javacord.core.util.handler.guild.GuildBanRemoveHandler)1 GuildCreateHandler (org.javacord.core.util.handler.guild.GuildCreateHandler)1 GuildDeleteHandler (org.javacord.core.util.handler.guild.GuildDeleteHandler)1 GuildEmojisUpdateHandler (org.javacord.core.util.handler.guild.GuildEmojisUpdateHandler)1 GuildMemberAddHandler (org.javacord.core.util.handler.guild.GuildMemberAddHandler)1