Interface CategorizableChannel
- All Superinterfaces:
Channel
,DiscordObject
,Entity
,GuildChannel
,TopLevelGuildChannel
- All Known Subinterfaces:
AudioChannel
,TopLevelGuildMessageChannel
- All Known Implementing Classes:
ForumChannel
,NewsChannel
,StageChannel
,StoreChannel
,TextChannel
,VoiceChannel
A Discord channel which can be categorized into a
Category
. These channels can also have invites.-
Nested Class Summary
Nested classes/interfaces inherited from interface discord4j.core.object.entity.channel.Channel
Channel.Flag, Channel.Type
-
Method Summary
Modifier and TypeMethodDescriptiondefault discord4j.core.spec.InviteCreateMono
Requests to create an invite.default Mono<ExtendedInvite>
createInvite
(discord4j.core.spec.InviteCreateSpec spec) Requests to create an invite.default Mono<ExtendedInvite>
createInvite
(Consumer<? super LegacyInviteCreateSpec> spec) Deprecated.Requests to retrieve the category for this channel, if present.getCategory
(EntityRetrievalStrategy retrievalStrategy) Requests to retrieve the category for this channel, if present, using the given retrieval strategy.Gets the ID of the category for this channel, if present.default Flux<ExtendedInvite>
Requests to retrieve this channel's invites.default int
Gets the amount of seconds a user has to wait before sending another message (0-21600).Methods inherited from interface discord4j.core.object.entity.channel.Channel
delete, delete, getData, getId, 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.TopLevelGuildChannel
addMemberOverwrite, addMemberOverwrite, addRoleOverwrite, addRoleOverwrite, getOverwriteForMember, getOverwriteForRole, getPermissionOverwrites, getPosition, getRawPosition
-
Method Details
-
getRateLimitPerUser
default int getRateLimitPerUser()Gets the amount of seconds a user has to wait before sending another message (0-21600).Bots, as well as users with the permission
manage_messages
ormanage_channel
, are unaffected.- Returns:
- The amount of seconds a user has to wait before sending another message (0-21600).
-
getCategoryId
Gets the ID of the category for this channel, if present.- Returns:
- The ID of the category for this channel, if present.
-
getCategory
Requests to retrieve the category for this channel, if present. -
getCategory
Requests to retrieve the category for this channel, if present, using the given retrieval strategy. -
createInvite
@Deprecated default Mono<ExtendedInvite> createInvite(Consumer<? super LegacyInviteCreateSpec> spec) Deprecated.usecreateInvite(InviteCreateSpec)
orcreateInvite()
which offer an immutable approach to build specsRequests to create an invite.- Parameters:
spec
- AConsumer
that provides a "blank"LegacyInviteCreateSpec
to be operated on.- Returns:
- A
Mono
where, upon successful completion, emits the createdExtendedInvite
. If an error is received, it is emitted through theMono
.
-
createInvite
default discord4j.core.spec.InviteCreateMono createInvite()Requests to create an invite. Properties specifying how to create the invite can be set via thewithXxx
methods of the returnedInviteCreateMono
.- Returns:
- A
InviteCreateMono
where, upon successful completion, emits the createdExtendedInvite
. If an error is received, it is emitted through theInviteCreateMono
.
-
createInvite
Requests to create an invite.- Parameters:
spec
- an immutable object that specifies how to create the invite- Returns:
- A
Mono
where, upon successful completion, emits the createdExtendedInvite
. If an error is received, it is emitted through theMono
.
-
getInvites
Requests to retrieve this channel's invites.
-
createInvite(InviteCreateSpec)
orcreateInvite()
which offer an immutable approach to build specs