Interface GuildChannel
- All Superinterfaces:
Channel
,DiscordObject
,Entity
- All Known Subinterfaces:
AudioChannel
,CategorizableChannel
,GuildMessageChannel
,TopLevelGuildChannel
,TopLevelGuildMessageChannel
- All Known Implementing Classes:
Category
,ForumChannel
,NewsChannel
,StageChannel
,StoreChannel
,TextChannel
,ThreadChannel
,VoiceChannel
A Discord channel associated to a
Guild
.-
Nested Class Summary
Nested classes/interfaces inherited from interface discord4j.core.object.entity.channel.Channel
Channel.Flag, Channel.Type
-
Method Summary
Modifier and TypeMethodDescriptiongetEffectivePermissions
(Snowflake memberId) Gets the permissions for the given member, taking into account permission overwrites in this channel.getEffectivePermissions
(Member member) Gets the permissions for the given member, taking into account permission overwrites in this channel.getGuild()
Requests to retrieve the guild this channel is associated to.getGuild
(EntityRetrievalStrategy retrievalStrategy) Requests to retrieve the guild this channel is associated to, using the given retrieval strategy.default Snowflake
Gets the ID of the guild this channel is associated to.default String
getName()
Gets the name of the channel.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
-
Method Details
-
getGuildId
Gets the ID of the guild this channel is associated to.- Returns:
- The ID of the guild this channel is associated to.
-
getGuild
Requests to retrieve the guild this channel is associated to. -
getGuild
Requests to retrieve the guild this channel is associated to, using the given retrieval strategy. -
getEffectivePermissions
Gets the permissions for the given member, taking into account permission overwrites in this channel.- Parameters:
memberId
- The ID of the member to get permissions for.- Returns:
- The permissions for the given member.
-
getEffectivePermissions
Gets the permissions for the given member, taking into account permission overwrites in this channel.- Parameters:
member
- The member to get permissions for.- Returns:
- The permissions for the given member.
-
getName
Gets the name of the channel.- Returns:
- The name of the channel.
-