Interface ServerThreadChannelBuilderDelegate
-
- All Superinterfaces:
ServerChannelBuilderDelegate
public interface ServerThreadChannelBuilderDelegate extends ServerChannelBuilderDelegate
This class is internally used by theServerThreadChannelBuilderto create server thread channels. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<ServerThreadChannel>create()Creates the server thread channel.voidsetAutoArchiveDuration(java.lang.Integer autoArchiveDuration)Sets the auto archive duration of the thread channel.voidsetChannelType(ChannelType channelType)Sets the thread channel type of the thread channel.voidsetInvitableFlag(java.lang.Boolean inviteable)Sets the invitable flag of the thread channel.voidsetSlowmodeDelayInSeconds(int delay)Sets the slowmode delay of the thread channel.-
Methods inherited from interface org.javacord.api.entity.channel.internal.ServerChannelBuilderDelegate
setAuditLogReason, setName
-
-
-
-
Method Detail
-
setInvitableFlag
void setInvitableFlag(java.lang.Boolean inviteable)
Sets the invitable flag of the thread channel.- Parameters:
inviteable- Whether non-moderators can add other non-moderators to a thread; only available when creating a private thread.
-
setChannelType
void setChannelType(ChannelType channelType)
Sets the thread channel type of the thread channel.- Parameters:
channelType- The thread chanel type of the
-
setAutoArchiveDuration
void setAutoArchiveDuration(java.lang.Integer autoArchiveDuration)
Sets the auto archive duration of the thread channel.- Parameters:
autoArchiveDuration- The auto archive duration in seconds.
-
setSlowmodeDelayInSeconds
void setSlowmodeDelayInSeconds(int delay)
Sets the slowmode delay of the thread channel.- Parameters:
delay- The delay in seconds.
-
create
java.util.concurrent.CompletableFuture<ServerThreadChannel> create()
Creates the server thread channel.- Returns:
- The created thread channel.
-
-