Package org.javacord.api.entity.sticker
Class StickerUpdater
- java.lang.Object
-
- org.javacord.api.entity.sticker.StickerUpdater
-
public class StickerUpdater extends java.lang.ObjectThis class is used to update stickers.
-
-
Constructor Summary
Constructors Constructor Description StickerUpdater(Server server, long id)Creates a new instance of the sticker updater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StickerUpdaterDelegategetDelegate()Gets the delegate of the sticker updater.StickerUpdatersetDescription(java.lang.String description)Updates the description of the sticker.StickerUpdatersetName(java.lang.String name)Updates the name of the sticker.StickerUpdatersetTags(java.lang.String tags)Updates the tags of the sticker.java.util.concurrent.CompletableFuture<Sticker>update()Updates the sticker.java.util.concurrent.CompletableFuture<Sticker>update(java.lang.String reason)Updates the sticker.
-
-
-
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.
-
-