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

public interface GuildChannel extends Channel
A Discord channel associated to a Guild.
  • Method Details

    • getGuildId

      default Snowflake getGuildId()
      Gets the ID of the guild this channel is associated to.
      Returns:
      The ID of the guild this channel is associated to.
    • getGuild

      default Mono<Guild> getGuild()
      Requests to retrieve the guild this channel is associated to.
      Returns:
      A Mono where, upon successful completion, emits the guild this channel is associated to. If an error is received, it is emitted through the Mono.
    • getGuild

      default Mono<Guild> getGuild(EntityRetrievalStrategy retrievalStrategy)
      Requests to retrieve the guild this channel is associated to, using the given retrieval strategy.
      Parameters:
      retrievalStrategy - the strategy to use to get the guild
      Returns:
      A Mono where, upon successful completion, emits the guild this channel is associated to. If an error is received, it is emitted through the Mono.
    • getEffectivePermissions

      Mono<PermissionSet> getEffectivePermissions(Snowflake memberId)
      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

      Mono<PermissionSet> getEffectivePermissions(Member member)
      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

      default String getName()
      Gets the name of the channel.
      Returns:
      The name of the channel.