It seems like this piece of code exists to disable the addition of the bot into servers that the instance is not configured to work with.
It isn't clear where this endpoint is used from, so I suspect it's dead code (though this is an untested hunch).
Tasks
Anyways, we probably don't need this validation. We can allow the bot to be added to any server, but the bot would print an error message if it's called in a server it's not configured to work on, redirecting people to the README instructions.
Description
It seems like this piece of code exists to disable the addition of the bot into servers that the instance is not configured to work with.
It isn't clear where this endpoint is used from, so I suspect it's dead code (though this is an untested hunch).
Tasks
Anyways, we probably don't need this validation. We can allow the bot to be added to any server, but the bot would print an error message if it's called in a server it's not configured to work on, redirecting people to the README instructions.