public interface Channel extends Entity
Modifier and Type | Interface and Description |
---|---|
static class |
Channel.Type
Represents the various types of channels.
|
Modifier and Type | Method and Description |
---|---|
default Mono<Void> |
delete()
Requests to delete this channel.
|
Mono<Void> |
delete(String reason)
Requests to delete this channel while optionally specifying a reason.
|
default String |
getMention()
Gets the raw mention.
|
RestChannel |
getRestChannel()
Return a
RestChannel handle to execute REST API operations on this entity. |
Channel.Type |
getType()
Gets the type of channel.
|
getClient
Channel.Type getType()
default Mono<Void> delete()
Mono
where, upon successful completion, emits nothing; indicating the channel has been deleted.
If an error is received, it is emitted through the Mono
.Mono<Void> delete(@Nullable String reason)
reason
- The reason, if present.Mono
where, upon successful completion, emits nothing; indicating the channel has been deleted.
If an error is received, it is emitted through the Mono
.default String getMention()
RestChannel getRestChannel()
RestChannel
handle to execute REST API operations on this entity.