Interface ChainableGloballyAttachableListenerManager

    • Method Detail

      • addUserChangeSelfMutedListener

        default DiscordApiBuilder addUserChangeSelfMutedListener​(UserChangeSelfMutedListener listener)
        Adds a UserChangeSelfMutedListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeSelfMutedListener

        default DiscordApiBuilder addUserChangeSelfMutedListener​(Supplier<UserChangeSelfMutedListener> listenerSupplier)
        Adds a UserChangeSelfMutedListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeSelfMutedListener

        default DiscordApiBuilder addUserChangeSelfMutedListener​(Function<DiscordApi,UserChangeSelfMutedListener> listenerFunction)
        Adds a UserChangeSelfMutedListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeSelfDeafenedListener

        default DiscordApiBuilder addUserChangeSelfDeafenedListener​(UserChangeSelfDeafenedListener listener)
        Adds a UserChangeSelfDeafenedListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeSelfDeafenedListener

        default DiscordApiBuilder addUserChangeSelfDeafenedListener​(Supplier<UserChangeSelfDeafenedListener> listenerSupplier)
        Adds a UserChangeSelfDeafenedListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeSelfDeafenedListener

        default DiscordApiBuilder addUserChangeSelfDeafenedListener​(Function<DiscordApi,UserChangeSelfDeafenedListener> listenerFunction)
        Adds a UserChangeSelfDeafenedListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeDiscriminatorListener

        default DiscordApiBuilder addUserChangeDiscriminatorListener​(UserChangeDiscriminatorListener listener)
        Adds a UserChangeDiscriminatorListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeDiscriminatorListener

        default DiscordApiBuilder addUserChangeDiscriminatorListener​(Supplier<UserChangeDiscriminatorListener> listenerSupplier)
        Adds a UserChangeDiscriminatorListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeDiscriminatorListener

        default DiscordApiBuilder addUserChangeDiscriminatorListener​(Function<DiscordApi,UserChangeDiscriminatorListener> listenerFunction)
        Adds a UserChangeDiscriminatorListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeActivityListener

        default DiscordApiBuilder addUserChangeActivityListener​(UserChangeActivityListener listener)
        Adds a UserChangeActivityListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeActivityListener

        default DiscordApiBuilder addUserChangeActivityListener​(Supplier<UserChangeActivityListener> listenerSupplier)
        Adds a UserChangeActivityListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeActivityListener

        default DiscordApiBuilder addUserChangeActivityListener​(Function<DiscordApi,UserChangeActivityListener> listenerFunction)
        Adds a UserChangeActivityListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeMutedListener

        default DiscordApiBuilder addUserChangeMutedListener​(UserChangeMutedListener listener)
        Adds a UserChangeMutedListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeMutedListener

        default DiscordApiBuilder addUserChangeMutedListener​(Supplier<UserChangeMutedListener> listenerSupplier)
        Adds a UserChangeMutedListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeMutedListener

        default DiscordApiBuilder addUserChangeMutedListener​(Function<DiscordApi,UserChangeMutedListener> listenerFunction)
        Adds a UserChangeMutedListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeDeafenedListener

        default DiscordApiBuilder addUserChangeDeafenedListener​(UserChangeDeafenedListener listener)
        Adds a UserChangeDeafenedListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeDeafenedListener

        default DiscordApiBuilder addUserChangeDeafenedListener​(Supplier<UserChangeDeafenedListener> listenerSupplier)
        Adds a UserChangeDeafenedListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeDeafenedListener

        default DiscordApiBuilder addUserChangeDeafenedListener​(Function<DiscordApi,UserChangeDeafenedListener> listenerFunction)
        Adds a UserChangeDeafenedListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserStartTypingListener

        default DiscordApiBuilder addUserStartTypingListener​(UserStartTypingListener listener)
        Adds a UserStartTypingListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserStartTypingListener

        default DiscordApiBuilder addUserStartTypingListener​(Supplier<UserStartTypingListener> listenerSupplier)
        Adds a UserStartTypingListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserStartTypingListener

        default DiscordApiBuilder addUserStartTypingListener​(Function<DiscordApi,UserStartTypingListener> listenerFunction)
        Adds a UserStartTypingListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeNicknameListener

        default DiscordApiBuilder addUserChangeNicknameListener​(UserChangeNicknameListener listener)
        Adds a UserChangeNicknameListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeNicknameListener

        default DiscordApiBuilder addUserChangeNicknameListener​(Supplier<UserChangeNicknameListener> listenerSupplier)
        Adds a UserChangeNicknameListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeNicknameListener

        default DiscordApiBuilder addUserChangeNicknameListener​(Function<DiscordApi,UserChangeNicknameListener> listenerFunction)
        Adds a UserChangeNicknameListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeAvatarListener

        default DiscordApiBuilder addUserChangeAvatarListener​(UserChangeAvatarListener listener)
        Adds a UserChangeAvatarListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeAvatarListener

        default DiscordApiBuilder addUserChangeAvatarListener​(Supplier<UserChangeAvatarListener> listenerSupplier)
        Adds a UserChangeAvatarListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeAvatarListener

        default DiscordApiBuilder addUserChangeAvatarListener​(Function<DiscordApi,UserChangeAvatarListener> listenerFunction)
        Adds a UserChangeAvatarListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeStatusListener

        default DiscordApiBuilder addUserChangeStatusListener​(UserChangeStatusListener listener)
        Adds a UserChangeStatusListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeStatusListener

        default DiscordApiBuilder addUserChangeStatusListener​(Supplier<UserChangeStatusListener> listenerSupplier)
        Adds a UserChangeStatusListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeStatusListener

        default DiscordApiBuilder addUserChangeStatusListener​(Function<DiscordApi,UserChangeStatusListener> listenerFunction)
        Adds a UserChangeStatusListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeNameListener

        default DiscordApiBuilder addUserChangeNameListener​(UserChangeNameListener listener)
        Adds a UserChangeNameListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeNameListener

        default DiscordApiBuilder addUserChangeNameListener​(Supplier<UserChangeNameListener> listenerSupplier)
        Adds a UserChangeNameListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserChangeNameListener

        default DiscordApiBuilder addUserChangeNameListener​(Function<DiscordApi,UserChangeNameListener> listenerFunction)
        Adds a UserChangeNameListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addResumeListener

        default DiscordApiBuilder addResumeListener​(ResumeListener listener)
        Adds a ResumeListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addResumeListener

        default DiscordApiBuilder addResumeListener​(Supplier<ResumeListener> listenerSupplier)
        Adds a ResumeListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addResumeListener

        default DiscordApiBuilder addResumeListener​(Function<DiscordApi,ResumeListener> listenerFunction)
        Adds a ResumeListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addLostConnectionListener

        default DiscordApiBuilder addLostConnectionListener​(LostConnectionListener listener)
        Adds a LostConnectionListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addLostConnectionListener

        default DiscordApiBuilder addLostConnectionListener​(Supplier<LostConnectionListener> listenerSupplier)
        Adds a LostConnectionListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addLostConnectionListener

        default DiscordApiBuilder addLostConnectionListener​(Function<DiscordApi,LostConnectionListener> listenerFunction)
        Adds a LostConnectionListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReconnectListener

        default DiscordApiBuilder addReconnectListener​(ReconnectListener listener)
        Adds a ReconnectListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addReconnectListener

        default DiscordApiBuilder addReconnectListener​(Supplier<ReconnectListener> listenerSupplier)
        Adds a ReconnectListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReconnectListener

        default DiscordApiBuilder addReconnectListener​(Function<DiscordApi,ReconnectListener> listenerFunction)
        Adds a ReconnectListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelCreateListener

        default DiscordApiBuilder addGroupChannelCreateListener​(GroupChannelCreateListener listener)
        Adds a GroupChannelCreateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelCreateListener

        default DiscordApiBuilder addGroupChannelCreateListener​(Supplier<GroupChannelCreateListener> listenerSupplier)
        Adds a GroupChannelCreateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelCreateListener

        default DiscordApiBuilder addGroupChannelCreateListener​(Function<DiscordApi,GroupChannelCreateListener> listenerFunction)
        Adds a GroupChannelCreateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelChangeNameListener

        default DiscordApiBuilder addGroupChannelChangeNameListener​(GroupChannelChangeNameListener listener)
        Adds a GroupChannelChangeNameListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelChangeNameListener

        default DiscordApiBuilder addGroupChannelChangeNameListener​(Supplier<GroupChannelChangeNameListener> listenerSupplier)
        Adds a GroupChannelChangeNameListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelChangeNameListener

        default DiscordApiBuilder addGroupChannelChangeNameListener​(Function<DiscordApi,GroupChannelChangeNameListener> listenerFunction)
        Adds a GroupChannelChangeNameListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelDeleteListener

        default DiscordApiBuilder addGroupChannelDeleteListener​(GroupChannelDeleteListener listener)
        Adds a GroupChannelDeleteListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelDeleteListener

        default DiscordApiBuilder addGroupChannelDeleteListener​(Supplier<GroupChannelDeleteListener> listenerSupplier)
        Adds a GroupChannelDeleteListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addGroupChannelDeleteListener

        default DiscordApiBuilder addGroupChannelDeleteListener​(Function<DiscordApi,GroupChannelDeleteListener> listenerFunction)
        Adds a GroupChannelDeleteListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addPrivateChannelCreateListener

        default DiscordApiBuilder addPrivateChannelCreateListener​(PrivateChannelCreateListener listener)
        Adds a PrivateChannelCreateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addPrivateChannelCreateListener

        default DiscordApiBuilder addPrivateChannelCreateListener​(Supplier<PrivateChannelCreateListener> listenerSupplier)
        Adds a PrivateChannelCreateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addPrivateChannelCreateListener

        default DiscordApiBuilder addPrivateChannelCreateListener​(Function<DiscordApi,PrivateChannelCreateListener> listenerFunction)
        Adds a PrivateChannelCreateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addPrivateChannelDeleteListener

        default DiscordApiBuilder addPrivateChannelDeleteListener​(PrivateChannelDeleteListener listener)
        Adds a PrivateChannelDeleteListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addPrivateChannelDeleteListener

        default DiscordApiBuilder addPrivateChannelDeleteListener​(Supplier<PrivateChannelDeleteListener> listenerSupplier)
        Adds a PrivateChannelDeleteListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addPrivateChannelDeleteListener

        default DiscordApiBuilder addPrivateChannelDeleteListener​(Function<DiscordApi,PrivateChannelDeleteListener> listenerFunction)
        Adds a PrivateChannelDeleteListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangePositionListener

        default DiscordApiBuilder addServerChannelChangePositionListener​(ServerChannelChangePositionListener listener)
        Adds a ServerChannelChangePositionListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangePositionListener

        default DiscordApiBuilder addServerChannelChangePositionListener​(Supplier<ServerChannelChangePositionListener> listenerSupplier)
        Adds a ServerChannelChangePositionListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangePositionListener

        default DiscordApiBuilder addServerChannelChangePositionListener​(Function<DiscordApi,ServerChannelChangePositionListener> listenerFunction)
        Adds a ServerChannelChangePositionListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeOverwrittenPermissionsListener

        default DiscordApiBuilder addServerChannelChangeOverwrittenPermissionsListener​(ServerChannelChangeOverwrittenPermissionsListener listener)
        Adds a ServerChannelChangeOverwrittenPermissionsListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeOverwrittenPermissionsListener

        default DiscordApiBuilder addServerChannelChangeOverwrittenPermissionsListener​(Supplier<ServerChannelChangeOverwrittenPermissionsListener> listenerSupplier)
        Adds a ServerChannelChangeOverwrittenPermissionsListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeOverwrittenPermissionsListener

        default DiscordApiBuilder addServerChannelChangeOverwrittenPermissionsListener​(Function<DiscordApi,ServerChannelChangeOverwrittenPermissionsListener> listenerFunction)
        Adds a ServerChannelChangeOverwrittenPermissionsListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelDeleteListener

        default DiscordApiBuilder addServerChannelDeleteListener​(ServerChannelDeleteListener listener)
        Adds a ServerChannelDeleteListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelDeleteListener

        default DiscordApiBuilder addServerChannelDeleteListener​(Supplier<ServerChannelDeleteListener> listenerSupplier)
        Adds a ServerChannelDeleteListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelDeleteListener

        default DiscordApiBuilder addServerChannelDeleteListener​(Function<DiscordApi,ServerChannelDeleteListener> listenerFunction)
        Adds a ServerChannelDeleteListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelCreateListener

        default DiscordApiBuilder addServerChannelCreateListener​(ServerChannelCreateListener listener)
        Adds a ServerChannelCreateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelCreateListener

        default DiscordApiBuilder addServerChannelCreateListener​(Supplier<ServerChannelCreateListener> listenerSupplier)
        Adds a ServerChannelCreateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelCreateListener

        default DiscordApiBuilder addServerChannelCreateListener​(Function<DiscordApi,ServerChannelCreateListener> listenerFunction)
        Adds a ServerChannelCreateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addWebhooksUpdateListener

        default DiscordApiBuilder addWebhooksUpdateListener​(WebhooksUpdateListener listener)
        Adds a WebhooksUpdateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addWebhooksUpdateListener

        default DiscordApiBuilder addWebhooksUpdateListener​(Supplier<WebhooksUpdateListener> listenerSupplier)
        Adds a WebhooksUpdateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addWebhooksUpdateListener

        default DiscordApiBuilder addWebhooksUpdateListener​(Function<DiscordApi,WebhooksUpdateListener> listenerFunction)
        Adds a WebhooksUpdateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerTextChannelChangeSlowmodeListener

        default DiscordApiBuilder addServerTextChannelChangeSlowmodeListener​(ServerTextChannelChangeSlowmodeListener listener)
        Adds a ServerTextChannelChangeSlowmodeListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerTextChannelChangeSlowmodeListener

        default DiscordApiBuilder addServerTextChannelChangeSlowmodeListener​(Supplier<ServerTextChannelChangeSlowmodeListener> listenerSupplier)
        Adds a ServerTextChannelChangeSlowmodeListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerTextChannelChangeSlowmodeListener

        default DiscordApiBuilder addServerTextChannelChangeSlowmodeListener​(Function<DiscordApi,ServerTextChannelChangeSlowmodeListener> listenerFunction)
        Adds a ServerTextChannelChangeSlowmodeListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerTextChannelChangeTopicListener

        default DiscordApiBuilder addServerTextChannelChangeTopicListener​(ServerTextChannelChangeTopicListener listener)
        Adds a ServerTextChannelChangeTopicListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerTextChannelChangeTopicListener

        default DiscordApiBuilder addServerTextChannelChangeTopicListener​(Supplier<ServerTextChannelChangeTopicListener> listenerSupplier)
        Adds a ServerTextChannelChangeTopicListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerTextChannelChangeTopicListener

        default DiscordApiBuilder addServerTextChannelChangeTopicListener​(Function<DiscordApi,ServerTextChannelChangeTopicListener> listenerFunction)
        Adds a ServerTextChannelChangeTopicListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeNsfwFlagListener

        default DiscordApiBuilder addServerChannelChangeNsfwFlagListener​(ServerChannelChangeNsfwFlagListener listener)
        Adds a ServerChannelChangeNsfwFlagListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeNsfwFlagListener

        default DiscordApiBuilder addServerChannelChangeNsfwFlagListener​(Supplier<ServerChannelChangeNsfwFlagListener> listenerSupplier)
        Adds a ServerChannelChangeNsfwFlagListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeNsfwFlagListener

        default DiscordApiBuilder addServerChannelChangeNsfwFlagListener​(Function<DiscordApi,ServerChannelChangeNsfwFlagListener> listenerFunction)
        Adds a ServerChannelChangeNsfwFlagListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelMemberLeaveListener

        default DiscordApiBuilder addServerVoiceChannelMemberLeaveListener​(ServerVoiceChannelMemberLeaveListener listener)
        Adds a ServerVoiceChannelMemberLeaveListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelMemberLeaveListener

        default DiscordApiBuilder addServerVoiceChannelMemberLeaveListener​(Supplier<ServerVoiceChannelMemberLeaveListener> listenerSupplier)
        Adds a ServerVoiceChannelMemberLeaveListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelMemberLeaveListener

        default DiscordApiBuilder addServerVoiceChannelMemberLeaveListener​(Function<DiscordApi,ServerVoiceChannelMemberLeaveListener> listenerFunction)
        Adds a ServerVoiceChannelMemberLeaveListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelChangeUserLimitListener

        default DiscordApiBuilder addServerVoiceChannelChangeUserLimitListener​(ServerVoiceChannelChangeUserLimitListener listener)
        Adds a ServerVoiceChannelChangeUserLimitListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelChangeUserLimitListener

        default DiscordApiBuilder addServerVoiceChannelChangeUserLimitListener​(Supplier<ServerVoiceChannelChangeUserLimitListener> listenerSupplier)
        Adds a ServerVoiceChannelChangeUserLimitListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelChangeUserLimitListener

        default DiscordApiBuilder addServerVoiceChannelChangeUserLimitListener​(Function<DiscordApi,ServerVoiceChannelChangeUserLimitListener> listenerFunction)
        Adds a ServerVoiceChannelChangeUserLimitListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelChangeBitrateListener

        default DiscordApiBuilder addServerVoiceChannelChangeBitrateListener​(ServerVoiceChannelChangeBitrateListener listener)
        Adds a ServerVoiceChannelChangeBitrateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelChangeBitrateListener

        default DiscordApiBuilder addServerVoiceChannelChangeBitrateListener​(Supplier<ServerVoiceChannelChangeBitrateListener> listenerSupplier)
        Adds a ServerVoiceChannelChangeBitrateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelChangeBitrateListener

        default DiscordApiBuilder addServerVoiceChannelChangeBitrateListener​(Function<DiscordApi,ServerVoiceChannelChangeBitrateListener> listenerFunction)
        Adds a ServerVoiceChannelChangeBitrateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelMemberJoinListener

        default DiscordApiBuilder addServerVoiceChannelMemberJoinListener​(ServerVoiceChannelMemberJoinListener listener)
        Adds a ServerVoiceChannelMemberJoinListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelMemberJoinListener

        default DiscordApiBuilder addServerVoiceChannelMemberJoinListener​(Supplier<ServerVoiceChannelMemberJoinListener> listenerSupplier)
        Adds a ServerVoiceChannelMemberJoinListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerVoiceChannelMemberJoinListener

        default DiscordApiBuilder addServerVoiceChannelMemberJoinListener​(Function<DiscordApi,ServerVoiceChannelMemberJoinListener> listenerFunction)
        Adds a ServerVoiceChannelMemberJoinListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeNameListener

        default DiscordApiBuilder addServerChannelChangeNameListener​(ServerChannelChangeNameListener listener)
        Adds a ServerChannelChangeNameListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeNameListener

        default DiscordApiBuilder addServerChannelChangeNameListener​(Supplier<ServerChannelChangeNameListener> listenerSupplier)
        Adds a ServerChannelChangeNameListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChannelChangeNameListener

        default DiscordApiBuilder addServerChannelChangeNameListener​(Function<DiscordApi,ServerChannelChangeNameListener> listenerFunction)
        Adds a ServerChannelChangeNameListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionRemoveAllListener

        default DiscordApiBuilder addReactionRemoveAllListener​(ReactionRemoveAllListener listener)
        Adds a ReactionRemoveAllListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionRemoveAllListener

        default DiscordApiBuilder addReactionRemoveAllListener​(Supplier<ReactionRemoveAllListener> listenerSupplier)
        Adds a ReactionRemoveAllListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionRemoveAllListener

        default DiscordApiBuilder addReactionRemoveAllListener​(Function<DiscordApi,ReactionRemoveAllListener> listenerFunction)
        Adds a ReactionRemoveAllListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionAddListener

        default DiscordApiBuilder addReactionAddListener​(ReactionAddListener listener)
        Adds a ReactionAddListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionAddListener

        default DiscordApiBuilder addReactionAddListener​(Supplier<ReactionAddListener> listenerSupplier)
        Adds a ReactionAddListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionAddListener

        default DiscordApiBuilder addReactionAddListener​(Function<DiscordApi,ReactionAddListener> listenerFunction)
        Adds a ReactionAddListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionRemoveListener

        default DiscordApiBuilder addReactionRemoveListener​(ReactionRemoveListener listener)
        Adds a ReactionRemoveListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionRemoveListener

        default DiscordApiBuilder addReactionRemoveListener​(Supplier<ReactionRemoveListener> listenerSupplier)
        Adds a ReactionRemoveListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addReactionRemoveListener

        default DiscordApiBuilder addReactionRemoveListener​(Function<DiscordApi,ReactionRemoveListener> listenerFunction)
        Adds a ReactionRemoveListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageEditListener

        default DiscordApiBuilder addMessageEditListener​(MessageEditListener listener)
        Adds a MessageEditListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageEditListener

        default DiscordApiBuilder addMessageEditListener​(Supplier<MessageEditListener> listenerSupplier)
        Adds a MessageEditListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageEditListener

        default DiscordApiBuilder addMessageEditListener​(Function<DiscordApi,MessageEditListener> listenerFunction)
        Adds a MessageEditListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addCachedMessageUnpinListener

        default DiscordApiBuilder addCachedMessageUnpinListener​(CachedMessageUnpinListener listener)
        Adds a CachedMessageUnpinListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addCachedMessageUnpinListener

        default DiscordApiBuilder addCachedMessageUnpinListener​(Supplier<CachedMessageUnpinListener> listenerSupplier)
        Adds a CachedMessageUnpinListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addCachedMessageUnpinListener

        default DiscordApiBuilder addCachedMessageUnpinListener​(Function<DiscordApi,CachedMessageUnpinListener> listenerFunction)
        Adds a CachedMessageUnpinListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addChannelPinsUpdateListener

        default DiscordApiBuilder addChannelPinsUpdateListener​(ChannelPinsUpdateListener listener)
        Adds a ChannelPinsUpdateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addChannelPinsUpdateListener

        default DiscordApiBuilder addChannelPinsUpdateListener​(Supplier<ChannelPinsUpdateListener> listenerSupplier)
        Adds a ChannelPinsUpdateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addChannelPinsUpdateListener

        default DiscordApiBuilder addChannelPinsUpdateListener​(Function<DiscordApi,ChannelPinsUpdateListener> listenerFunction)
        Adds a ChannelPinsUpdateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageCreateListener

        default DiscordApiBuilder addMessageCreateListener​(MessageCreateListener listener)
        Adds a MessageCreateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageCreateListener

        default DiscordApiBuilder addMessageCreateListener​(Supplier<MessageCreateListener> listenerSupplier)
        Adds a MessageCreateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageCreateListener

        default DiscordApiBuilder addMessageCreateListener​(Function<DiscordApi,MessageCreateListener> listenerFunction)
        Adds a MessageCreateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageDeleteListener

        default DiscordApiBuilder addMessageDeleteListener​(MessageDeleteListener listener)
        Adds a MessageDeleteListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageDeleteListener

        default DiscordApiBuilder addMessageDeleteListener​(Supplier<MessageDeleteListener> listenerSupplier)
        Adds a MessageDeleteListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addMessageDeleteListener

        default DiscordApiBuilder addMessageDeleteListener​(Function<DiscordApi,MessageDeleteListener> listenerFunction)
        Adds a MessageDeleteListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addCachedMessagePinListener

        default DiscordApiBuilder addCachedMessagePinListener​(CachedMessagePinListener listener)
        Adds a CachedMessagePinListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addCachedMessagePinListener

        default DiscordApiBuilder addCachedMessagePinListener​(Supplier<CachedMessagePinListener> listenerSupplier)
        Adds a CachedMessagePinListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addCachedMessagePinListener

        default DiscordApiBuilder addCachedMessagePinListener​(Function<DiscordApi,CachedMessagePinListener> listenerFunction)
        Adds a CachedMessagePinListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeDefaultMessageNotificationLevelListener

        default DiscordApiBuilder addServerChangeDefaultMessageNotificationLevelListener​(ServerChangeDefaultMessageNotificationLevelListener listener)
        Adds a ServerChangeDefaultMessageNotificationLevelListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeDefaultMessageNotificationLevelListener

        default DiscordApiBuilder addServerChangeDefaultMessageNotificationLevelListener​(Supplier<ServerChangeDefaultMessageNotificationLevelListener> listenerSupplier)
        Adds a ServerChangeDefaultMessageNotificationLevelListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeDefaultMessageNotificationLevelListener

        default DiscordApiBuilder addServerChangeDefaultMessageNotificationLevelListener​(Function<DiscordApi,ServerChangeDefaultMessageNotificationLevelListener> listenerFunction)
        Adds a ServerChangeDefaultMessageNotificationLevelListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeSystemChannelListener

        default DiscordApiBuilder addServerChangeSystemChannelListener​(ServerChangeSystemChannelListener listener)
        Adds a ServerChangeSystemChannelListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeSystemChannelListener

        default DiscordApiBuilder addServerChangeSystemChannelListener​(Supplier<ServerChangeSystemChannelListener> listenerSupplier)
        Adds a ServerChangeSystemChannelListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeSystemChannelListener

        default DiscordApiBuilder addServerChangeSystemChannelListener​(Function<DiscordApi,ServerChangeSystemChannelListener> listenerFunction)
        Adds a ServerChangeSystemChannelListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeRegionListener

        default DiscordApiBuilder addServerChangeRegionListener​(ServerChangeRegionListener listener)
        Adds a ServerChangeRegionListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeRegionListener

        default DiscordApiBuilder addServerChangeRegionListener​(Supplier<ServerChangeRegionListener> listenerSupplier)
        Adds a ServerChangeRegionListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeRegionListener

        default DiscordApiBuilder addServerChangeRegionListener​(Function<DiscordApi,ServerChangeRegionListener> listenerFunction)
        Adds a ServerChangeRegionListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeVerificationLevelListener

        default DiscordApiBuilder addServerChangeVerificationLevelListener​(ServerChangeVerificationLevelListener listener)
        Adds a ServerChangeVerificationLevelListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeVerificationLevelListener

        default DiscordApiBuilder addServerChangeVerificationLevelListener​(Supplier<ServerChangeVerificationLevelListener> listenerSupplier)
        Adds a ServerChangeVerificationLevelListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeVerificationLevelListener

        default DiscordApiBuilder addServerChangeVerificationLevelListener​(Function<DiscordApi,ServerChangeVerificationLevelListener> listenerFunction)
        Adds a ServerChangeVerificationLevelListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangePositionListener

        default DiscordApiBuilder addRoleChangePositionListener​(RoleChangePositionListener listener)
        Adds a RoleChangePositionListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangePositionListener

        default DiscordApiBuilder addRoleChangePositionListener​(Supplier<RoleChangePositionListener> listenerSupplier)
        Adds a RoleChangePositionListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangePositionListener

        default DiscordApiBuilder addRoleChangePositionListener​(Function<DiscordApi,RoleChangePositionListener> listenerFunction)
        Adds a RoleChangePositionListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserRoleAddListener

        default DiscordApiBuilder addUserRoleAddListener​(UserRoleAddListener listener)
        Adds a UserRoleAddListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserRoleAddListener

        default DiscordApiBuilder addUserRoleAddListener​(Supplier<UserRoleAddListener> listenerSupplier)
        Adds a UserRoleAddListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserRoleAddListener

        default DiscordApiBuilder addUserRoleAddListener​(Function<DiscordApi,UserRoleAddListener> listenerFunction)
        Adds a UserRoleAddListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeMentionableListener

        default DiscordApiBuilder addRoleChangeMentionableListener​(RoleChangeMentionableListener listener)
        Adds a RoleChangeMentionableListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeMentionableListener

        default DiscordApiBuilder addRoleChangeMentionableListener​(Supplier<RoleChangeMentionableListener> listenerSupplier)
        Adds a RoleChangeMentionableListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeMentionableListener

        default DiscordApiBuilder addRoleChangeMentionableListener​(Function<DiscordApi,RoleChangeMentionableListener> listenerFunction)
        Adds a RoleChangeMentionableListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeNameListener

        default DiscordApiBuilder addRoleChangeNameListener​(RoleChangeNameListener listener)
        Adds a RoleChangeNameListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeNameListener

        default DiscordApiBuilder addRoleChangeNameListener​(Supplier<RoleChangeNameListener> listenerSupplier)
        Adds a RoleChangeNameListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeNameListener

        default DiscordApiBuilder addRoleChangeNameListener​(Function<DiscordApi,RoleChangeNameListener> listenerFunction)
        Adds a RoleChangeNameListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangePermissionsListener

        default DiscordApiBuilder addRoleChangePermissionsListener​(RoleChangePermissionsListener listener)
        Adds a RoleChangePermissionsListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangePermissionsListener

        default DiscordApiBuilder addRoleChangePermissionsListener​(Supplier<RoleChangePermissionsListener> listenerSupplier)
        Adds a RoleChangePermissionsListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangePermissionsListener

        default DiscordApiBuilder addRoleChangePermissionsListener​(Function<DiscordApi,RoleChangePermissionsListener> listenerFunction)
        Adds a RoleChangePermissionsListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleDeleteListener

        default DiscordApiBuilder addRoleDeleteListener​(RoleDeleteListener listener)
        Adds a RoleDeleteListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleDeleteListener

        default DiscordApiBuilder addRoleDeleteListener​(Supplier<RoleDeleteListener> listenerSupplier)
        Adds a RoleDeleteListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleDeleteListener

        default DiscordApiBuilder addRoleDeleteListener​(Function<DiscordApi,RoleDeleteListener> listenerFunction)
        Adds a RoleDeleteListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeColorListener

        default DiscordApiBuilder addRoleChangeColorListener​(RoleChangeColorListener listener)
        Adds a RoleChangeColorListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeColorListener

        default DiscordApiBuilder addRoleChangeColorListener​(Supplier<RoleChangeColorListener> listenerSupplier)
        Adds a RoleChangeColorListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeColorListener

        default DiscordApiBuilder addRoleChangeColorListener​(Function<DiscordApi,RoleChangeColorListener> listenerFunction)
        Adds a RoleChangeColorListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserRoleRemoveListener

        default DiscordApiBuilder addUserRoleRemoveListener​(UserRoleRemoveListener listener)
        Adds a UserRoleRemoveListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserRoleRemoveListener

        default DiscordApiBuilder addUserRoleRemoveListener​(Supplier<UserRoleRemoveListener> listenerSupplier)
        Adds a UserRoleRemoveListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addUserRoleRemoveListener

        default DiscordApiBuilder addUserRoleRemoveListener​(Function<DiscordApi,UserRoleRemoveListener> listenerFunction)
        Adds a UserRoleRemoveListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleCreateListener

        default DiscordApiBuilder addRoleCreateListener​(RoleCreateListener listener)
        Adds a RoleCreateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleCreateListener

        default DiscordApiBuilder addRoleCreateListener​(Supplier<RoleCreateListener> listenerSupplier)
        Adds a RoleCreateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleCreateListener

        default DiscordApiBuilder addRoleCreateListener​(Function<DiscordApi,RoleCreateListener> listenerFunction)
        Adds a RoleCreateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeHoistListener

        default DiscordApiBuilder addRoleChangeHoistListener​(RoleChangeHoistListener listener)
        Adds a RoleChangeHoistListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeHoistListener

        default DiscordApiBuilder addRoleChangeHoistListener​(Supplier<RoleChangeHoistListener> listenerSupplier)
        Adds a RoleChangeHoistListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addRoleChangeHoistListener

        default DiscordApiBuilder addRoleChangeHoistListener​(Function<DiscordApi,RoleChangeHoistListener> listenerFunction)
        Adds a RoleChangeHoistListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeIconListener

        default DiscordApiBuilder addServerChangeIconListener​(ServerChangeIconListener listener)
        Adds a ServerChangeIconListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeIconListener

        default DiscordApiBuilder addServerChangeIconListener​(Supplier<ServerChangeIconListener> listenerSupplier)
        Adds a ServerChangeIconListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeIconListener

        default DiscordApiBuilder addServerChangeIconListener​(Function<DiscordApi,ServerChangeIconListener> listenerFunction)
        Adds a ServerChangeIconListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiChangeNameListener

        default DiscordApiBuilder addKnownCustomEmojiChangeNameListener​(KnownCustomEmojiChangeNameListener listener)
        Adds a KnownCustomEmojiChangeNameListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiChangeNameListener

        default DiscordApiBuilder addKnownCustomEmojiChangeNameListener​(Supplier<KnownCustomEmojiChangeNameListener> listenerSupplier)
        Adds a KnownCustomEmojiChangeNameListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiChangeNameListener

        default DiscordApiBuilder addKnownCustomEmojiChangeNameListener​(Function<DiscordApi,KnownCustomEmojiChangeNameListener> listenerFunction)
        Adds a KnownCustomEmojiChangeNameListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiCreateListener

        default DiscordApiBuilder addKnownCustomEmojiCreateListener​(KnownCustomEmojiCreateListener listener)
        Adds a KnownCustomEmojiCreateListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiCreateListener

        default DiscordApiBuilder addKnownCustomEmojiCreateListener​(Supplier<KnownCustomEmojiCreateListener> listenerSupplier)
        Adds a KnownCustomEmojiCreateListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiCreateListener

        default DiscordApiBuilder addKnownCustomEmojiCreateListener​(Function<DiscordApi,KnownCustomEmojiCreateListener> listenerFunction)
        Adds a KnownCustomEmojiCreateListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiDeleteListener

        default DiscordApiBuilder addKnownCustomEmojiDeleteListener​(KnownCustomEmojiDeleteListener listener)
        Adds a KnownCustomEmojiDeleteListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiDeleteListener

        default DiscordApiBuilder addKnownCustomEmojiDeleteListener​(Supplier<KnownCustomEmojiDeleteListener> listenerSupplier)
        Adds a KnownCustomEmojiDeleteListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiDeleteListener

        default DiscordApiBuilder addKnownCustomEmojiDeleteListener​(Function<DiscordApi,KnownCustomEmojiDeleteListener> listenerFunction)
        Adds a KnownCustomEmojiDeleteListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiChangeWhitelistedRolesListener

        default DiscordApiBuilder addKnownCustomEmojiChangeWhitelistedRolesListener​(KnownCustomEmojiChangeWhitelistedRolesListener listener)
        Adds a KnownCustomEmojiChangeWhitelistedRolesListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiChangeWhitelistedRolesListener

        default DiscordApiBuilder addKnownCustomEmojiChangeWhitelistedRolesListener​(Supplier<KnownCustomEmojiChangeWhitelistedRolesListener> listenerSupplier)
        Adds a KnownCustomEmojiChangeWhitelistedRolesListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addKnownCustomEmojiChangeWhitelistedRolesListener

        default DiscordApiBuilder addKnownCustomEmojiChangeWhitelistedRolesListener​(Function<DiscordApi,KnownCustomEmojiChangeWhitelistedRolesListener> listenerFunction)
        Adds a KnownCustomEmojiChangeWhitelistedRolesListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerJoinListener

        default DiscordApiBuilder addServerJoinListener​(ServerJoinListener listener)
        Adds a ServerJoinListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerJoinListener

        default DiscordApiBuilder addServerJoinListener​(Supplier<ServerJoinListener> listenerSupplier)
        Adds a ServerJoinListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerJoinListener

        default DiscordApiBuilder addServerJoinListener​(Function<DiscordApi,ServerJoinListener> listenerFunction)
        Adds a ServerJoinListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeNameListener

        default DiscordApiBuilder addServerChangeNameListener​(ServerChangeNameListener listener)
        Adds a ServerChangeNameListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeNameListener

        default DiscordApiBuilder addServerChangeNameListener​(Supplier<ServerChangeNameListener> listenerSupplier)
        Adds a ServerChangeNameListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeNameListener

        default DiscordApiBuilder addServerChangeNameListener​(Function<DiscordApi,ServerChangeNameListener> listenerFunction)
        Adds a ServerChangeNameListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberLeaveListener

        default DiscordApiBuilder addServerMemberLeaveListener​(ServerMemberLeaveListener listener)
        Adds a ServerMemberLeaveListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberLeaveListener

        default DiscordApiBuilder addServerMemberLeaveListener​(Supplier<ServerMemberLeaveListener> listenerSupplier)
        Adds a ServerMemberLeaveListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberLeaveListener

        default DiscordApiBuilder addServerMemberLeaveListener​(Function<DiscordApi,ServerMemberLeaveListener> listenerFunction)
        Adds a ServerMemberLeaveListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberBanListener

        default DiscordApiBuilder addServerMemberBanListener​(ServerMemberBanListener listener)
        Adds a ServerMemberBanListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberBanListener

        default DiscordApiBuilder addServerMemberBanListener​(Supplier<ServerMemberBanListener> listenerSupplier)
        Adds a ServerMemberBanListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberBanListener

        default DiscordApiBuilder addServerMemberBanListener​(Function<DiscordApi,ServerMemberBanListener> listenerFunction)
        Adds a ServerMemberBanListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberUnbanListener

        default DiscordApiBuilder addServerMemberUnbanListener​(ServerMemberUnbanListener listener)
        Adds a ServerMemberUnbanListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberUnbanListener

        default DiscordApiBuilder addServerMemberUnbanListener​(Supplier<ServerMemberUnbanListener> listenerSupplier)
        Adds a ServerMemberUnbanListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberUnbanListener

        default DiscordApiBuilder addServerMemberUnbanListener​(Function<DiscordApi,ServerMemberUnbanListener> listenerFunction)
        Adds a ServerMemberUnbanListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberJoinListener

        default DiscordApiBuilder addServerMemberJoinListener​(ServerMemberJoinListener listener)
        Adds a ServerMemberJoinListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberJoinListener

        default DiscordApiBuilder addServerMemberJoinListener​(Supplier<ServerMemberJoinListener> listenerSupplier)
        Adds a ServerMemberJoinListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerMemberJoinListener

        default DiscordApiBuilder addServerMemberJoinListener​(Function<DiscordApi,ServerMemberJoinListener> listenerFunction)
        Adds a ServerMemberJoinListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeAfkTimeoutListener

        default DiscordApiBuilder addServerChangeAfkTimeoutListener​(ServerChangeAfkTimeoutListener listener)
        Adds a ServerChangeAfkTimeoutListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeAfkTimeoutListener

        default DiscordApiBuilder addServerChangeAfkTimeoutListener​(Supplier<ServerChangeAfkTimeoutListener> listenerSupplier)
        Adds a ServerChangeAfkTimeoutListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeAfkTimeoutListener

        default DiscordApiBuilder addServerChangeAfkTimeoutListener​(Function<DiscordApi,ServerChangeAfkTimeoutListener> listenerFunction)
        Adds a ServerChangeAfkTimeoutListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeExplicitContentFilterLevelListener

        default DiscordApiBuilder addServerChangeExplicitContentFilterLevelListener​(ServerChangeExplicitContentFilterLevelListener listener)
        Adds a ServerChangeExplicitContentFilterLevelListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeExplicitContentFilterLevelListener

        default DiscordApiBuilder addServerChangeExplicitContentFilterLevelListener​(Supplier<ServerChangeExplicitContentFilterLevelListener> listenerSupplier)
        Adds a ServerChangeExplicitContentFilterLevelListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeExplicitContentFilterLevelListener

        default DiscordApiBuilder addServerChangeExplicitContentFilterLevelListener​(Function<DiscordApi,ServerChangeExplicitContentFilterLevelListener> listenerFunction)
        Adds a ServerChangeExplicitContentFilterLevelListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeSplashListener

        default DiscordApiBuilder addServerChangeSplashListener​(ServerChangeSplashListener listener)
        Adds a ServerChangeSplashListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeSplashListener

        default DiscordApiBuilder addServerChangeSplashListener​(Supplier<ServerChangeSplashListener> listenerSupplier)
        Adds a ServerChangeSplashListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeSplashListener

        default DiscordApiBuilder addServerChangeSplashListener​(Function<DiscordApi,ServerChangeSplashListener> listenerFunction)
        Adds a ServerChangeSplashListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeMultiFactorAuthenticationLevelListener

        default DiscordApiBuilder addServerChangeMultiFactorAuthenticationLevelListener​(ServerChangeMultiFactorAuthenticationLevelListener listener)
        Adds a ServerChangeMultiFactorAuthenticationLevelListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeMultiFactorAuthenticationLevelListener

        default DiscordApiBuilder addServerChangeMultiFactorAuthenticationLevelListener​(Supplier<ServerChangeMultiFactorAuthenticationLevelListener> listenerSupplier)
        Adds a ServerChangeMultiFactorAuthenticationLevelListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeMultiFactorAuthenticationLevelListener

        default DiscordApiBuilder addServerChangeMultiFactorAuthenticationLevelListener​(Function<DiscordApi,ServerChangeMultiFactorAuthenticationLevelListener> listenerFunction)
        Adds a ServerChangeMultiFactorAuthenticationLevelListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeAfkChannelListener

        default DiscordApiBuilder addServerChangeAfkChannelListener​(ServerChangeAfkChannelListener listener)
        Adds a ServerChangeAfkChannelListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeAfkChannelListener

        default DiscordApiBuilder addServerChangeAfkChannelListener​(Supplier<ServerChangeAfkChannelListener> listenerSupplier)
        Adds a ServerChangeAfkChannelListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeAfkChannelListener

        default DiscordApiBuilder addServerChangeAfkChannelListener​(Function<DiscordApi,ServerChangeAfkChannelListener> listenerFunction)
        Adds a ServerChangeAfkChannelListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerBecomesUnavailableListener

        default DiscordApiBuilder addServerBecomesUnavailableListener​(ServerBecomesUnavailableListener listener)
        Adds a ServerBecomesUnavailableListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerBecomesUnavailableListener

        default DiscordApiBuilder addServerBecomesUnavailableListener​(Supplier<ServerBecomesUnavailableListener> listenerSupplier)
        Adds a ServerBecomesUnavailableListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerBecomesUnavailableListener

        default DiscordApiBuilder addServerBecomesUnavailableListener​(Function<DiscordApi,ServerBecomesUnavailableListener> listenerFunction)
        Adds a ServerBecomesUnavailableListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeOwnerListener

        default DiscordApiBuilder addServerChangeOwnerListener​(ServerChangeOwnerListener listener)
        Adds a ServerChangeOwnerListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeOwnerListener

        default DiscordApiBuilder addServerChangeOwnerListener​(Supplier<ServerChangeOwnerListener> listenerSupplier)
        Adds a ServerChangeOwnerListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerChangeOwnerListener

        default DiscordApiBuilder addServerChangeOwnerListener​(Function<DiscordApi,ServerChangeOwnerListener> listenerFunction)
        Adds a ServerChangeOwnerListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerBecomesAvailableListener

        default DiscordApiBuilder addServerBecomesAvailableListener​(ServerBecomesAvailableListener listener)
        Adds a ServerBecomesAvailableListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerBecomesAvailableListener

        default DiscordApiBuilder addServerBecomesAvailableListener​(Supplier<ServerBecomesAvailableListener> listenerSupplier)
        Adds a ServerBecomesAvailableListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerBecomesAvailableListener

        default DiscordApiBuilder addServerBecomesAvailableListener​(Function<DiscordApi,ServerBecomesAvailableListener> listenerFunction)
        Adds a ServerBecomesAvailableListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerLeaveListener

        default DiscordApiBuilder addServerLeaveListener​(ServerLeaveListener listener)
        Adds a ServerLeaveListener to all created DiscordApi instances.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerLeaveListener

        default DiscordApiBuilder addServerLeaveListener​(Supplier<ServerLeaveListener> listenerSupplier)
        Adds a ServerLeaveListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addServerLeaveListener

        default DiscordApiBuilder addServerLeaveListener​(Function<DiscordApi,ServerLeaveListener> listenerFunction)
        Adds a ServerLeaveListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addListener

        <T extends GloballyAttachableListenerDiscordApiBuilder addListener​(Class<T> listenerClass,
                                                                             T listener)
        Adds a GloballyAttachableListener to all created DiscordApi instances. Adding a listener multiple times will only add it once. The order of invocation is according to first addition.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addListener

        DiscordApiBuilder addListener​(GloballyAttachableListener listener)
        Adds a listener that implements one or more GloballyAttachableListeners to all created DiscordApi instances. Adding a listener multiple times will only add it once. The order of invocation is according to first addition.
        Parameters:
        listener - The listener to add.
        Returns:
        The current instance in order to chain call methods.
      • addListener

        <T extends GloballyAttachableListenerDiscordApiBuilder addListener​(Class<T> listenerClass,
                                                                             Supplier<T> listenerSupplier)
        Adds a GloballyAttachableListener to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new. Adding a listener multiple times will only add it once. The order of invocation is according to first addition.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addListener

        DiscordApiBuilder addListener​(Supplier<GloballyAttachableListener> listenerSupplier)
        Adds a listener that implements one or more GloballyAttachableListeners to all created DiscordApi instances. The supplier is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a default constructor like MyListener::new. Adding a listener multiple times will only add it once. The order of invocation is according to first addition.
        Parameters:
        listenerSupplier - The supplier of listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addListener

        <T extends GloballyAttachableListenerDiscordApiBuilder addListener​(Class<T> listenerClass,
                                                                             Function<DiscordApi,T> listenerFunction)
        Adds a GloballyAttachableListener to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new. Adding a listener multiple times will only add it once. The order of invocation is according to first addition.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • addListener

        DiscordApiBuilder addListener​(Function<DiscordApi,GloballyAttachableListener> listenerFunction)
        Adds a listener that implements one or more GloballyAttachableListeners to all created DiscordApi instances. The function is called for every created DiscordApi instance, so either the same or different instances can be registered. One example would be a method reference to a constructor with a DiscordApi parameter like MyListener::new. Adding a listener multiple times will only add it once. The order of invocation is according to first addition.
        Parameters:
        listenerFunction - The function to provide listeners to add.
        Returns:
        The current instance in order to chain call methods.
      • removeListener

        DiscordApiBuilder removeListener​(GloballyAttachableListener listener)
        Removes a listener that implements one or more GloballyAttachableListeners from the list of listeners to be added to DiscordApi instances. If the listener was already added to a DiscordApi instance, it will not get removed by calling this method. This method should normally only be used before calling one of the login methods.
        Parameters:
        listener - The listener to remove.
        Returns:
        The current instance in order to chain call methods.
      • removeListener

        <T extends GloballyAttachableListenerDiscordApiBuilder removeListener​(Class<T> listenerClass,
                                                                                T listener)
        Removes a GloballyAttachableListener from the list of listeners to be added to DiscordApi instances. If the listener was already added to a DiscordApi instance, it will not get removed by calling this method. This method should normally only be used before calling one of the login methods.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listener - The listener to remove.
        Returns:
        The current instance in order to chain call methods.
      • removeListenerSupplier

        DiscordApiBuilder removeListenerSupplier​(Supplier<GloballyAttachableListener> listenerSupplier)
        Removes a supplier of listeners that implements one or more GloballyAttachableListeners from the list of listeners to be added to DiscordApi instances. If the listener was already added to a DiscordApi instance, it will not get removed by calling this method. This method should normally only be used before calling one of the login methods.
        Parameters:
        listenerSupplier - The supplier of listeners to remove.
        Returns:
        The current instance in order to chain call methods.
      • removeListenerSupplier

        <T extends GloballyAttachableListenerDiscordApiBuilder removeListenerSupplier​(Class<T> listenerClass,
                                                                                        Supplier<T> listenerSupplier)
        Removes a supplier of GloballyAttachableListeners from the list of listeners to be added to DiscordApi instances. If the listener was already added to a DiscordApi instance, it will not get removed by calling this method. This method should normally only be used before calling one of the login methods.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listenerSupplier - The supplier of listeners to remove.
        Returns:
        The current instance in order to chain call methods.
      • removeListenerFunction

        DiscordApiBuilder removeListenerFunction​(Function<DiscordApi,GloballyAttachableListener> listenerFunction)
        Removes a function that provides listeners that implements one or more GloballyAttachableListeners from the list of listeners to be added to DiscordApi instances. If the listener was already added to a DiscordApi instance, it will not get removed by calling this method. This method should normally only be used before calling one of the login methods.
        Parameters:
        listenerFunction - The function to provide listeners to remove.
        Returns:
        The current instance in order to chain call methods.
      • removeListenerFunction

        <T extends GloballyAttachableListenerDiscordApiBuilder removeListenerFunction​(Class<T> listenerClass,
                                                                                        Function<DiscordApi,T> listenerFunction)
        Removes a function that provides GloballyAttachableListeners from the list of listeners to be added to DiscordApi instances. If the listener was already added to a DiscordApi instance, it will not get removed by calling this method. This method should normally only be used before calling one of the login methods.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listenerFunction - The function to provide listeners to remove.
        Returns:
        The current instance in order to chain call methods.