Package org.javacord.api.entity.channel
Class GroupChannelUpdater
- java.lang.Object
-
- org.javacord.api.entity.channel.GroupChannelUpdater
-
public class GroupChannelUpdater extends Object
This class can be used to update group channels.
-
-
Constructor Summary
Constructors Constructor Description GroupChannelUpdater(GroupChannel channel)Creates a new group channel updater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupChannelUpdatersetName(String name)Queues the name to be updated.CompletableFuture<Void>update()Performs the queued updates.
-
-
-
Constructor Detail
-
GroupChannelUpdater
public GroupChannelUpdater(GroupChannel channel)
Creates a new group channel updater.- Parameters:
channel- The channel to update.
-
-
Method Detail
-
setName
public GroupChannelUpdater setName(String name)
Queues the name to be updated.- Parameters:
name- The new name of the channel.- Returns:
- The current instance in order to chain call methods.
-
update
public CompletableFuture<Void> update()
Performs the queued updates.- Returns:
- A future to check if the update was successful.
-
-