Interface ExtendedInteractionMessageBuilderBase<T>

    • Method Detail

      • copy

        T copy​(Message message)
        Copy a message's values into this build instance.
        Parameters:
        message - The message to copy.
        Returns:
        The current instance in order to chain call methods.
      • copy

        T copy​(InteractionBase interaction)
        Copy an interaction's message.
        Parameters:
        interaction - The interaction to copy.
        Returns:
        The current instance in order to chain call methods/
      • addFile

        T addFile​(BufferedImage image,
                  String fileName)
        Adds a file to the message.
        Parameters:
        image - The image to add as an attachment.
        fileName - The file name of the image.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(BufferedImage, String)
      • addFile

        T addFile​(File file)
        Adds a file to the message.
        Parameters:
        file - The file to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(File)
      • addFile

        T addFile​(Icon icon)
        Adds a file to the message.
        Parameters:
        icon - The icon to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(Icon)
      • addFile

        T addFile​(URL url)
        Adds a file to the message and marks it as a spoiler.
        Parameters:
        url - The url of the attachment.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(URL)
      • addFile

        T addFile​(byte[] bytes,
                  String fileName)
        Adds a file to the message.
        Parameters:
        bytes - The bytes of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(byte[], String)
      • addFile

        T addFile​(InputStream stream,
                  String fileName)
        Adds a file to the message.
        Parameters:
        stream - The stream of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(InputStream, String)
      • addFileAsSpoiler

        T addFileAsSpoiler​(BufferedImage image,
                           String fileName)
        Adds a file to the message and marks it as spoiler.
        Parameters:
        image - The image to add as an attachment.
        fileName - The file name of the image.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachmentAsSpoiler(BufferedImage, String)
      • addFileAsSpoiler

        T addFileAsSpoiler​(File file)
        Adds a file to the message and marks it as spoiler.
        Parameters:
        file - The file to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachmentAsSpoiler(File)
      • addFileAsSpoiler

        T addFileAsSpoiler​(Icon icon)
        Adds a file to the message and marks it as spoiler.
        Parameters:
        icon - The icon to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachmentAsSpoiler(Icon)
      • addFileAsSpoiler

        T addFileAsSpoiler​(URL url)
        Adds a file to the message and marks it as a spoiler.
        Parameters:
        url - The url of the attachment.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(URL)
      • addFileAsSpoiler

        T addFileAsSpoiler​(byte[] bytes,
                           String fileName)
        Adds a file to the message and marks it as spoiler.
        Parameters:
        bytes - The bytes of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachmentAsSpoiler(byte[], String)
      • addFileAsSpoiler

        T addFileAsSpoiler​(InputStream stream,
                           String fileName)
        Adds a file to the message and marks it as spoiler.
        Parameters:
        stream - The stream of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.
        See Also:
        addAttachment(InputStream, String)
      • addAttachment

        T addAttachment​(BufferedImage image,
                        String fileName)
        Adds an attachment to the message.
        Parameters:
        image - The image to add as an attachment.
        fileName - The file name of the image.
        Returns:
        The current instance in order to chain call methods.
      • addAttachment

        T addAttachment​(File file)
        Adds an attachment to the message.
        Parameters:
        file - The file to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
      • addAttachment

        T addAttachment​(Icon icon)
        Adds an attachment to the message.
        Parameters:
        icon - The icon to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
      • addAttachment

        T addAttachment​(URL url)
        Adds an attachment to the message.
        Parameters:
        url - The url of the attachment.
        Returns:
        The current instance in order to chain call methods.
      • addAttachment

        T addAttachment​(byte[] bytes,
                        String fileName)
        Adds an attachment to the message.
        Parameters:
        bytes - The bytes of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.
      • addAttachment

        T addAttachment​(InputStream stream,
                        String fileName)
        Adds an attachment to the message.
        Parameters:
        stream - The stream of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.
      • addAttachmentAsSpoiler

        T addAttachmentAsSpoiler​(BufferedImage image,
                                 String fileName)
        Adds an attachment to the message and marks it as spoiler.
        Parameters:
        image - The image to add as an attachment.
        fileName - The file name of the image.
        Returns:
        The current instance in order to chain call methods.
      • addAttachmentAsSpoiler

        T addAttachmentAsSpoiler​(File file)
        Adds an attachment to the message and marks it as spoiler.
        Parameters:
        file - The file to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
      • addAttachmentAsSpoiler

        T addAttachmentAsSpoiler​(Icon icon)
        Adds an attachment to the message and marks it as spoiler.
        Parameters:
        icon - The icon to add as an attachment.
        Returns:
        The current instance in order to chain call methods.
      • addAttachmentAsSpoiler

        T addAttachmentAsSpoiler​(URL url)
        Adds an attachment to the message and marks it as spoiler.
        Parameters:
        url - The url of the attachment.
        Returns:
        The current instance in order to chain call methods.
      • addAttachmentAsSpoiler

        T addAttachmentAsSpoiler​(byte[] bytes,
                                 String fileName)
        Adds an attachment to the message and marks it as spoiler.
        Parameters:
        bytes - The bytes of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.
      • addAttachmentAsSpoiler

        T addAttachmentAsSpoiler​(InputStream stream,
                                 String fileName)
        Adds an attachment to the message and marks it as spoiler.
        Parameters:
        stream - The stream of the file.
        fileName - The name of the file.
        Returns:
        The current instance in order to chain call methods.