@Override public JDA getJDA() { return getChannel().getJDA(); }
/** * Creates a new ChannelManager instance * * @param channel * {@link net.dv8tion.jda.core.entities.Channel Channel} that should be modified * <br>Either {@link net.dv8tion.jda.core.entities.VoiceChannel Voice}- or {@link net.dv8tion.jda.core.entities.TextChannel TextChannel} */ public ChannelManager(Channel channel) { super(channel.getJDA(), Route.Channels.MODIFY_CHANNEL.compile(channel.getId())); this.channel = new UpstreamReference<>(channel); if (isPermissionChecksEnabled()) checkPermissions(); this.overridesAdd = new TLongObjectHashMap<>(); this.overridesRem = new TLongHashSet(); }