$app->delete('/events/:id/channels/:channel', function($id, $channel) use ($app) {
    header("Content-Type: application/json");
    $res = Irc::delete_channel($channel);
    if ($res["status"] == Irc::ERROR) {
        $app->response->status(500);