Interface MemberAction

    • Method Detail

      • setCheck

        @Nonnull
        MemberAction setCheck​(@Nullable
                              BooleanSupplier checks)
        Description copied from interface: RestAction
        Sets the last-second checks before finally executing the http request in the queue.
        If the provided supplier evaluates to false or throws an exception this will not be finished. When an exception is thrown from the supplier it will be provided to the failure callback.
        Specified by:
        setCheck in interface RestAction<Void>
        Parameters:
        checks - The checks to run before executing the request, or null to run no checks
        Returns:
        The current RestAction for chaining convenience
      • getAccessToken

        @Nonnull
        String getAccessToken()
        The access token
        Returns:
        The access token
      • getUserId

        @Nonnull
        String getUserId()
        The id of the user who will be added by this task
        Returns:
        The id of the user
      • getUser

        @Nullable
        User getUser()
        The user associated with the id
        Returns:
        Possibly-null user associated with the id
      • getGuild

        @Nonnull
        Guild getGuild()
        The Guild to which the user will be added.
        Returns:
        The Guild
      • setMute

        @Nonnull
        @CheckReturnValue
        MemberAction setMute​(boolean mute)
        Whether the user should be voice muted in the guild.
        Default: false
        Parameters:
        mute - Whether the user should be voice muted in the guild.
        Returns:
        The current MemberAction for chaining
      • setDeafen

        @Nonnull
        @CheckReturnValue
        MemberAction setDeafen​(boolean deaf)
        Whether the user should be voice deafened in the guild.
        Default: false
        Parameters:
        deaf - Whether the user should be voice deafened in the guild.
        Returns:
        The current MemberAction for chaining