Class AllowedMentions.Builder

    • Method Detail

      • allowUser

        public AllowedMentions.Builder allowUser​(Snowflake userId)
        Add a user to the allowed users list.
        Parameters:
        userId - the user to allow
        Returns:
        this builder
      • allowRole

        public AllowedMentions.Builder allowRole​(Snowflake roleId)
        Add a role to the allowed roles list.
        Parameters:
        roleId - the role to allow
        Returns:
        this builder
      • allowUser

        public AllowedMentions.Builder allowUser​(Snowflake... userId)
        Add users to the allowed users list.
        Parameters:
        userId - the users to allow
        Returns:
        this builder
      • allowRole

        public AllowedMentions.Builder allowRole​(Snowflake... roleId)
        Add roles to the allowed roles list.
        Parameters:
        roleId - the roles to allow
        Returns:
        this builder
      • repliedUser

        public AllowedMentions.Builder repliedUser​(boolean repliedUser)
        Set whether to mention the author of the message being replied to.
        Parameters:
        repliedUser - whether to mention the author of the message being replied to.
        Returns:
        this builder