Interface VoiceChannel
public interface VoiceChannel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a member to the channel@Nullable Actor
Get the creator of the channelGet the members of the channelgetName()
Get the name of the channel@Nullable String
Get the required permission to join this channelboolean
Check if a client is a member of this channelboolean
Check if a client is a member of this channeljoinPreconditionCheck
(Client client) Check if a client would be allowed to join this channelvoid
removeMember
(Client client) Remove a member from the channelboolean
If this channel requires permission to join
-
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
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
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
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
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
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
Add a member to the channel- Parameters:
client
- the client to add
-
removeMember
Remove a member from the channel- Parameters:
client
- the client to remove
-