Package org.javacord.api.entity.channel
Class ServerChannelBuilder<T>
- java.lang.Object
-
- org.javacord.api.entity.channel.ServerChannelBuilder<T>
-
- Direct Known Subclasses:
RegularServerChannelBuilder,ServerThreadChannelBuilder
public class ServerChannelBuilder<T> extends java.lang.ObjectThis class is used to create new server channels.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerChannelBuilderDelegatedelegateThe server channel delegate used by this instance.protected java.lang.Class<T>myClass
-
Constructor Summary
Constructors Modifier Constructor Description protectedServerChannelBuilder(java.lang.Class<T> myClass, ServerChannelBuilderDelegate delegate)Creates a new server channel builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TsetAuditLogReason(java.lang.String reason)Sets the reason for this creation.TsetName(java.lang.String name)Sets the name of the channel.
-
-
-
Field Detail
-
myClass
protected final java.lang.Class<T> myClass
-
delegate
protected final ServerChannelBuilderDelegate delegate
The server channel delegate used by this instance.
-
-
Constructor Detail
-
ServerChannelBuilder
protected ServerChannelBuilder(java.lang.Class<T> myClass, ServerChannelBuilderDelegate delegate)
Creates a new server channel builder.- Parameters:
myClass- The class of the channel to create.delegate- The server channel delegate used by this instance.
-
-
Method Detail
-
setAuditLogReason
public T setAuditLogReason(java.lang.String reason)
Sets the reason for this creation. This reason will be visible in the audit log entry(s).- Parameters:
reason- The reason for this update.- Returns:
- The current instance in order to chain call methods.
-
setName
public T setName(java.lang.String name)
Sets the name of the channel.- Parameters:
name- The name of the channel.- Returns:
- The current instance in order to chain call methods.
-
-