Interface TopLevelGuildMessageChannel
-
- All Superinterfaces:
CategorizableChannel,Channel,DiscordObject,Entity,GuildChannel,GuildMessageChannel,MessageChannel,TopLevelGuildChannel
- All Known Implementing Classes:
NewsChannel,TextChannel,VoiceChannel
public interface TopLevelGuildMessageChannel extends CategorizableChannel, GuildMessageChannel
A Discord message channel in a guild that isn't a thread.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface discord4j.core.object.entity.channel.Channel
Channel.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Mono<Webhook>createWebhook(discord4j.core.spec.WebhookCreateSpec spec)Requests to create a webhook.default discord4j.core.spec.WebhookCreateMonocreateWebhook(String name)Requests to create a webhook.Mono<Webhook>createWebhook(Consumer<? super LegacyWebhookCreateSpec> 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.-
Methods inherited from interface discord4j.core.object.entity.channel.CategorizableChannel
createInvite
-
Methods inherited from interface discord4j.core.object.entity.channel.Channel
delete, delete, getMention, getRestChannel, getType
-
Methods inherited from interface discord4j.core.object.DiscordObject
getClient
-
Methods inherited from interface discord4j.core.object.entity.channel.GuildChannel
getEffectivePermissions, getEffectivePermissions, getGuild, getGuild, getGuildId, getName
-
Methods inherited from interface discord4j.core.object.entity.channel.GuildMessageChannel
bulkDelete, bulkDeleteMessages, createInvite, createInvite, getCategory, getCategory, getCategoryId, getInvites, getMembers
-
Methods inherited from interface discord4j.core.object.entity.channel.MessageChannel
createEmbed, createEmbed, createMessage, createMessage, createMessage, createMessage, getLastMessage, getLastMessage, getLastMessageId, getLastPinTimestamp, getMessageById, getMessageById, getMessagesAfter, getMessagesBefore, getPinnedMessages, type, typeUntil
-
Methods inherited from interface discord4j.core.object.entity.channel.TopLevelGuildChannel
addMemberOverwrite, addMemberOverwrite, addRoleOverwrite, addRoleOverwrite, getOverwriteForMember, getOverwriteForRole, getPermissionOverwrites, getPosition, getRawPosition
-
-
-
-
Method Detail
-
getTopic
Optional<String> getTopic()
Description copied from interface:GuildMessageChannelGets the channel topic, if present.- Specified by:
getTopicin interfaceGuildMessageChannel- Returns:
- The channel topic, if present.
-
createWebhook
Mono<Webhook> createWebhook(Consumer<? super LegacyWebhookCreateSpec> spec)
Description copied from interface:GuildMessageChannelRequests to create a webhook.- Specified by:
createWebhookin interfaceGuildMessageChannel- Parameters:
spec- AConsumerthat provides a "blank"LegacyWebhookCreateSpecto be operated on.- Returns:
- A
Monowhere, upon successful completion, emits the createdWebhook. If an error is received, it is emitted through theMono.
-
createWebhook
default discord4j.core.spec.WebhookCreateMono createWebhook(String name)
Description copied from interface:GuildMessageChannelRequests to create a webhook. Properties specifying how to create the webhook can be set via thewithXxxmethods of the returnedWebhookCreateMono.- Specified by:
createWebhookin interfaceGuildMessageChannel- Returns:
- A
Monowhere, upon successful completion, emits the createdWebhook. If an error is received, it is emitted through theMono.
-
createWebhook
Mono<Webhook> createWebhook(discord4j.core.spec.WebhookCreateSpec spec)
Description copied from interface:GuildMessageChannelRequests to create a webhook.- Specified by:
createWebhookin interfaceGuildMessageChannel- Parameters:
spec- an immutable object that specifies how to create the webhook- Returns:
- A
Monowhere, upon successful completion, emits the createdWebhook. If an error is received, it is emitted through theMono.
-
getWebhooks
Flux<Webhook> getWebhooks()
Description copied from interface:GuildMessageChannelRequests to retrieve the webhooks of the channel.- Specified by:
getWebhooksin interfaceGuildMessageChannel- Returns:
- A
Fluxthat continually emits thewebhooksof the channel. If an error is received, it is emitted through theFlux.
-
-