Looks like this line is returning "false":
$channels = $discordRepo->getGuild('/channels');
This could happen for one of three reasons.
Server ID is wrong, leading to a 404 error.
Discord is rejecting your cURL request, leading to a 500 error.
You have no controllable channels on your server...