Package org.javacord.api.entity.channel
Interface Categorizable
-
- All Superinterfaces:
ChannelSpecialization,Specializable<ChannelSpecialization>
- All Known Subinterfaces:
ServerForumChannel,ServerStageVoiceChannel,ServerTextChannel,ServerVoiceChannel
public interface Categorizable extends ChannelSpecialization
This class represents an entity which can have a channel category.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ChannelCategory>getCategory()Gets the category of the channel.java.util.concurrent.CompletableFuture<java.lang.Void>removeCategory()Removes the category of the channel.java.util.concurrent.CompletableFuture<java.lang.Void>updateCategory(ChannelCategory category)Updates the category of the channel.-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
getCategory
java.util.Optional<ChannelCategory> getCategory()
Gets the category of the channel.- Returns:
- The category of the channel.
-
updateCategory
java.util.concurrent.CompletableFuture<java.lang.Void> updateCategory(ChannelCategory category)
Updates the category of the channel.- Parameters:
category- The new category of the channel.- Returns:
- A future to check if the update was successful.
-
removeCategory
java.util.concurrent.CompletableFuture<java.lang.Void> removeCategory()
Removes the category of the channel.- Returns:
- A future to check if the update was successful.
-
-