public interface GuildMessageChannel extends Categorizable, GuildChannel, Invitable, MessageChannel
Guild
and can utilize messages.Channel.Type
Modifier and Type | Method and Description |
---|---|
Flux<Snowflake> |
bulkDelete(Publisher<Snowflake> messageIds)
Requests to bulk delete the supplied message IDs.
|
Mono<Webhook> |
createWebhook(Consumer<? super WebhookCreateSpec> spec)
Requests to create a webhook.
|
Optional<String> |
getTopic()
Gets the channel topic, if present
|
Flux<Webhook> |
getWebhooks()
Requests to retrieve the webhooks of the channel.
|
boolean |
isNsfw()
Gets whether this channel is considered NSFW (Not Safe For Work).
|
getCategory, getCategoryId
addMemberOverwrite, addMemberOverwrite, addRoleOverwrite, addRoleOverwrite, getEffectivePermissions, getGuild, getGuildId, getName, getOverwriteForMember, getOverwriteForRole, getPermissionOverwrites, getPosition, getRawPosition
createInvite, getInvites
createEmbed, createMessage, createMessage, getLastMessage, getLastMessageId, getLastPinTimestamp, getMessageById, getMessagesAfter, getMessagesBefore, getPinnedMessages, type, typeUntil
delete, delete, getMention, getType
getClient
Optional<String> getTopic()
boolean isNsfw()
true
if this channel is considered NSFW (Not Safe For Work), false
otherwise.Flux<Snowflake> bulkDelete(Publisher<Snowflake> messageIds)
messageIds
- A Publisher
to supply the message IDs to bulk delete.Flux
that continually emits message IDs
that were not bulk deleted
(typically if the ID was older than 2 weeks). If an error is received, it is emitted through the Flux
.Mono<Webhook> createWebhook(Consumer<? super WebhookCreateSpec> spec)
spec
- A Consumer
that provides a "blank" WebhookCreateSpec
to be operated on.Mono
where, upon successful completion, emits the created Webhook
. If an error
is received, it is emitted through the Mono
.