Interface TextableRegularServerChannel

    • Method Detail

      • canWrite

        default boolean canWrite​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can send messages in this channel. In private channels this always returns true if the user is part of the chat. Please notice, this does not check if a user has blocked private messages!
        Specified by:
        canWrite in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can write messages or not.
      • canUseExternalEmojis

        default boolean canUseExternalEmojis​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can use external emojis in this channel. In private channels this always returns true if the user is part of the chat. Please notice, this does not check if a user has blocked private messages! It also doesn't check if the user is even able to send any external emojis (twitch subscription or nitro).
        Specified by:
        canUseExternalEmojis in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can use external emojis or not.
      • canEmbedLinks

        default boolean canEmbedLinks​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can use embed links in this channel. In private channels this always returns true if the user is part of the chat. Please notice, this does not check if a user has blocked private messages!
        Specified by:
        canEmbedLinks in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can embed links or not.
      • canReadMessageHistory

        default boolean canReadMessageHistory​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can read the message history of this channel. In private channels this always returns true if the user is part of the chat.
        Specified by:
        canReadMessageHistory in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can read the message history or not.
      • canUseTts

        default boolean canUseTts​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can use tts (text to speech) in this channel. In private channels this always returns true if the user is part of the chat. Please notice, this does not check if a user has blocked private messages!
        Specified by:
        canUseTts in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can use tts or not.
      • canAttachFiles

        default boolean canAttachFiles​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can attach files in this channel.
        Specified by:
        canAttachFiles in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can attach files or not.
      • canAddNewReactions

        default boolean canAddNewReactions​(User user)
        Description copied from interface: TextChannel
        Checks if the given user is allowed to add new reactions to messages in this channel.
        Specified by:
        canAddNewReactions in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user is allowed to add new reactions to messages in this channel or not.
      • canManageMessages

        default boolean canManageMessages​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can manage messages (delete or pin them or remove reactions of others) in this channel. In private channels this always returns true if the user is part of the chat.
        Specified by:
        canManageMessages in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can manage messages or not.
      • canMentionEveryone

        default boolean canMentionEveryone​(User user)
        Description copied from interface: TextChannel
        Checks if the given user can mention everyone (@everyone) in this channel. In private channels this always returns true if the user is part of the chat.
        Specified by:
        canMentionEveryone in interface TextChannel
        Parameters:
        user - The user to check.
        Returns:
        Whether the given user can mention everyone (@everyone) or not.
      • getMentionTag

        default java.lang.String getMentionTag()
        Description copied from interface: Mentionable
        Gets the tag used to mention the entity.
        Specified by:
        getMentionTag in interface Mentionable
        Returns:
        The tag used to mention the entity.
      • isNsfw

        boolean isNsfw()
        Checks is the channel is "not safe for work".
        Returns:
        Whether the channel is "not safe for work" or not.
      • createWebhookBuilder

        default WebhookBuilder createWebhookBuilder()
        Creates a webhook builder for this channel.
        Returns:
        A webhook builder.