Package net.dv8tion.jda.api.exceptions
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:
java.io.Serializable
public class MissingAccessException extends InsufficientPermissionException
Indicates that the user is missing theVIEW_CHANNEL
orVOICE_CONNECT
permission.- Since:
- 4.2.1
- See Also:
IPermissionHolder.hasAccess(GuildChannel)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MissingAccessException(GuildChannel channel, Permission permission)
MissingAccessException(GuildChannel channel, Permission permission, java.lang.String reason)
-
Method Summary
-
Methods inherited from class net.dv8tion.jda.api.exceptions.InsufficientPermissionException
getChannel, getChannelId, getChannelType, getGuild, getGuildId
-
Methods inherited from class net.dv8tion.jda.api.exceptions.PermissionException
getPermission
-
-
-
-
Constructor Detail
-
MissingAccessException
public MissingAccessException(@Nonnull GuildChannel channel, @Nonnull Permission permission)
-
MissingAccessException
public MissingAccessException(@Nonnull GuildChannel channel, @Nonnull Permission permission, @Nonnull java.lang.String reason)
-
-