Interface IVoiceStatusChannel
- All Superinterfaces:
Channel
,Formattable
,IMentionable
,ISnowflake
- All Known Subinterfaces:
VoiceChannel
Channel with a modifiable voice status.
This can be used to indicate what is going on to people outside the channel.
This can be used to indicate what is going on to people outside the channel.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The maximum length of a voice status 500Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionThe current voice channel status.modifyStatus
(String status) Change the current voice channel status.Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
delete, formatTo, getAsMention, getFlags, getJDA, getName, getType
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Field Details
-
MAX_STATUS_LENGTH
static final int MAX_STATUS_LENGTHThe maximum length of a voice status 500- See Also:
-
-
Method Details
-
getStatus
The current voice channel status.
This can be configured by users who are connected and have theset voice channel status
permission.- Returns:
- The current voice channel status, or empty string if unset
-
modifyStatus
Change the current voice channel status.
This can be configured by users who are connected and have theset voice channel status
permission.- Parameters:
status
- The new status, or empty to unset- Returns:
AuditableRestAction
- Throws:
IllegalArgumentException
- If the status is null or longer than 500 charactersMissingAccessException
- If the currently logged in account does not havePermission.VIEW_CHANNEL
in this channelInsufficientPermissionException
-- If the currently logged in account is not connected and does not have the
MANAGE_CHANNEL
permission. - If the currently logged in account is connected and does not have the
VOICE_SET_STATUS
permission.
- If the currently logged in account is not connected and does not have the
-