Restrict bots from creating servers, groups, acking messages, and making friends.
This commit is contained in:
1 parent
084d71f050
commit
93610ebbc3
16 files changed
+65
-5
No files matched your search
@@ -46,6 +46,7 @@ pub enum Error {
|
||||
|
||||
// ? Bot related errors.
|
||||
ReachedMaximumBots,
|
||||
IsBot,
|
||||
|
||||
// ? General errors.
|
||||
TooManyIds,
|
||||
@@ -102,6 +103,7 @@ impl<'r> Responder<'r, 'static> for Error {
|
||||
Error::Banned => Status::Forbidden,
|
||||
|
||||
Error::ReachedMaximumBots => Status::BadRequest,
|
||||
Error::IsBot => Status::BadRequest,
|
||||
|
||||
Error::FailedValidation { .. } => Status::UnprocessableEntity,
|
||||
Error::DatabaseError { .. } => Status::InternalServerError,
|
||||
|
||||
Reference in new issue
Block a user