Invite bot to server / group for #8.
This commit is contained in:
1 parent
93610ebbc3
commit
9f749cfdf8
7 files changed
+127
-51
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user