Interface StickerBuilderDelegate


  • public interface StickerBuilderDelegate
    This class is internally used by the StickerBuilder. You usually don't want to interact with this object.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void copy​(Sticker sticker)
      Copies the values of the sticker into the builder.
      java.util.concurrent.CompletableFuture<Sticker> create()
      Creates a new Sticker object with the given values.
      java.util.concurrent.CompletableFuture<Sticker> create​(java.lang.String reason)
      Creates a new Sticker object with the given values.
      void setDescription​(java.lang.String description)
      Sets the description of the sticker.
      void setFile​(java.io.File file)
      Sets the file to upload as sticker.
      void setName​(java.lang.String name)
      Sets the name of the sticker.
      void setTags​(java.lang.String tags)
      Sets the tags of the sticker.
    • Method Detail

      • copy

        void copy​(Sticker sticker)
        Copies the values of the sticker into the builder.
        Parameters:
        sticker - The sticker to copy.
      • setName

        void setName​(java.lang.String name)
        Sets the name of the sticker.
        Parameters:
        name - The name of the sticker.
      • setDescription

        void setDescription​(java.lang.String description)
        Sets the description of the sticker.
        Parameters:
        description - The description of the sticker.
      • setTags

        void setTags​(java.lang.String tags)
        Sets the tags of the sticker.
        Parameters:
        tags - The tags of the sticker.
      • setFile

        void setFile​(java.io.File file)
        Sets the file to upload as sticker.
        Parameters:
        file - The file to upload as sticker.
      • create

        java.util.concurrent.CompletableFuture<Sticker> create()
        Creates a new Sticker object with the given values.
        Returns:
        A future of the created sticker object.
      • create

        java.util.concurrent.CompletableFuture<Sticker> create​(java.lang.String reason)
        Creates a new Sticker object with the given values.
        Parameters:
        reason - The reason for the audit log.
        Returns:
        A future of the created sticker object.