mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
fix(bot): clean up some error messages
This commit is contained in:
parent
d537f05b23
commit
8266100155
3 changed files with 35 additions and 18 deletions
|
|
@ -241,6 +241,12 @@ public class ProxiedMessage
|
|||
{
|
||||
throw new PKError("Could not edit message.");
|
||||
}
|
||||
catch (BadRequestException e)
|
||||
{
|
||||
if (e.Message == "Voice messages cannot be edited")
|
||||
throw new PKError($"{e.Message}.");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<(PKMessage, SystemId)> GetMessageToEdit(Context ctx, Duration timeout, bool isReproxy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue