refactor(apiv2): rename APIErrors to Errors, move IsUserError to helper method
This commit is contained in:
@@ -35,7 +35,7 @@ namespace PluralKit.API
|
||||
{
|
||||
var msg = await _db.Execute(c => _repo.GetMessage(c, messageId));
|
||||
if (msg == null)
|
||||
throw APIErrors.MessageNotFound;
|
||||
throw Errors.MessageNotFound;
|
||||
|
||||
var ctx = this.ContextFor(msg.System);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user