/** * Creates a new WebhookManager instance * * @param webhook * The target {@link net.dv8tion.jda.core.entities.Webhook Webhook} to modify */ public WebhookManager(Webhook webhook) { super(webhook.getJDA(), Route.Webhooks.MODIFY_WEBHOOK.compile(webhook.getId())); this.webhook = new UpstreamReference<>(webhook); if (isPermissionChecksEnabled()) checkPermissions(); }