public class NewsChannelEditSpec extends Object implements AuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
NewsChannel
settings.
GConstructor and Description |
---|
NewsChannelEditSpec() |
Modifier and Type | Method and Description |
---|---|
discord4j.discordjson.json.ChannelModifyRequest |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
NewsChannelEditSpec |
setName(String name)
Sets the name of the modified
NewsChannel . |
NewsChannelEditSpec |
setNsfw(boolean nsfw)
Sets whether the modified
NewsChannel should be NSFW (not safe for work). |
NewsChannelEditSpec |
setParentId(Snowflake parentId)
Sets the identifier of the parent category of the modified
NewsChannel . |
NewsChannelEditSpec |
setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
Sets the modified
NewsChannel permission overwrites. |
NewsChannelEditSpec |
setPosition(int position)
Sets the position of the modified
NewsChannel . |
NewsChannelEditSpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
NewsChannelEditSpec |
setTopic(String topic)
Sets the topic of the modified
NewsChannel . |
public NewsChannelEditSpec setName(String name)
NewsChannel
.name
- The channel name.public NewsChannelEditSpec setPosition(int position)
NewsChannel
.position
- The channel position.public NewsChannelEditSpec setTopic(String topic)
NewsChannel
.topic
- The channel topic.public NewsChannelEditSpec setNsfw(boolean nsfw)
NewsChannel
should be NSFW (not safe for work).nsfw
- The channel nsfw property.public NewsChannelEditSpec setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
NewsChannel
permission overwrites.permissionOverwrites
- The set of PermissionOverwrite
objects.public NewsChannelEditSpec setParentId(@Nullable Snowflake parentId)
NewsChannel
.parentId
- The parent category identifier.public NewsChannelEditSpec setReason(@Nullable String reason)
AuditSpec
@Nullable public String getReason()
AuditSpec