Interface VoiceChannel


public interface VoiceChannel
  • Method Details

    • getName

      String getName()
      Get the name of the channel
      Returns:
      the name of the channel
    • getMembers

      Collection<Client> getMembers()
      Get the members of the channel
      Returns:
      the members of the channel
    • getCreator

      @Nullable @Nullable Actor getCreator()
      Get the creator of the channel
      Returns:
      the creator of the channel, or null if the channel is not a user channel
    • requiresPermission

      boolean requiresPermission()
      If this channel requires permission to join
      Returns:
      true if the channel requires permission to join
    • getRequiredPermission

      @Nullable @Nullable String getRequiredPermission()
      Get the required permission to join this channel
      Returns:
      the required permission to join this channel, or null if the channel does not require permission
    • isMember

      boolean isMember(Actor actor)
      Check if a client is a member of this channel
      Parameters:
      actor - the actor to check
      Returns:
      true if the actor is a member of this channel
    • isMember

      boolean isMember(UUID uuid)
      Check if a client is a member of this channel
      Parameters:
      uuid - the uuid of the actor to check
      Returns:
      true if the actor is a member of this channel
    • joinPreconditionCheck

      ChannelJoinResponse joinPreconditionCheck(Client client)
      Check if a client would be allowed to join this channel
      Parameters:
      client - the client to check
      Returns:
      the response of the join check
    • addMember

      void addMember(Client client)
      Add a member to the channel
      Parameters:
      client - the client to add
    • removeMember

      void removeMember(Client client)
      Remove a member from the channel
      Parameters:
      client - the client to remove