Class MissingAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.dv8tion.jda.api.exceptions.PermissionException
net.dv8tion.jda.api.exceptions.InsufficientPermissionException
net.dv8tion.jda.api.exceptions.MissingAccessException
- All Implemented Interfaces:
Serializable
Indicates that the user is missing the
VIEW_CHANNEL,
in addition to VOICE_CONNECT permission if Channel.getType() is an audio type.- Since:
- 4.2.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingAccessException(GuildChannel channel, Permission permission) MissingAccessException(GuildChannel channel, Permission permission, String reason) -
Method Summary
Methods inherited from class InsufficientPermissionException
getChannel, getChannelId, getChannelType, getGuild, getGuildIdMethods inherited from class PermissionException
getPermissionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingAccessException
-
MissingAccessException
public MissingAccessException(@Nonnull GuildChannel channel, @Nonnull Permission permission, @Nonnull String reason)
-