Class StickerUpdater


  • public class StickerUpdater
    extends java.lang.Object
    This class is used to update stickers.
    • Constructor Summary

      Constructors 
      Constructor Description
      StickerUpdater​(Server server, long id)
      Creates a new instance of the sticker updater.
    • Constructor Detail

      • StickerUpdater

        public StickerUpdater​(Server server,
                              long id)
        Creates a new instance of the sticker updater.
        Parameters:
        server - The server that owns the sticker.
        id - The ID of the sticker.
    • Method Detail

      • setName

        public StickerUpdater setName​(java.lang.String name)
        Updates the name of the sticker.
        Parameters:
        name - The new name of the sticker.
        Returns:
        The builder.
      • setDescription

        public StickerUpdater setDescription​(java.lang.String description)
        Updates the description of the sticker.
        Parameters:
        description - The new description of the sticker.
        Returns:
        The builder.
      • setTags

        public StickerUpdater setTags​(java.lang.String tags)
        Updates the tags of the sticker.
        Parameters:
        tags - The new tags of the sticker.
        Returns:
        The builder.
      • update

        public java.util.concurrent.CompletableFuture<Sticker> update()
        Updates the sticker.
        Returns:
        The updated sticker.
      • update

        public java.util.concurrent.CompletableFuture<Sticker> update​(java.lang.String reason)
        Updates the sticker.
        Parameters:
        reason - The reason for the audit log.
        Returns:
        The updated sticker.
      • getDelegate

        public StickerUpdaterDelegate getDelegate()
        Gets the delegate of the sticker updater.
        Returns:
        The delegate of the sticker updater.