Invite bot to server / group for #8.

This commit is contained in:
Paul committed 2021-08-12 09:24:06 +01:00
1 parent 93610ebbc3
commit 9f749cfdf8
7 files changed
+127 -51

No files matched your search

+2
View File
@@ -47,6 +47,7 @@ pub enum Error {
// ? Bot related errors.
ReachedMaximumBots,
IsBot,
BotIsPrivate,
// ? General errors.
TooManyIds,
@@ -104,6 +105,7 @@ impl<'r> Responder<'r, 'static> for Error {
Error::ReachedMaximumBots => Status::BadRequest,
Error::IsBot => Status::BadRequest,
Error::BotIsPrivate => Status::Forbidden,
Error::FailedValidation { .. } => Status::UnprocessableEntity,
Error::DatabaseError { .. } => Status::InternalServerError,