chore: lint

This commit is contained in:
spiral 2022-11-03 22:24:17 +00:00
parent ff70c26dae
commit e2a6ee208b
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E
2 changed files with 11 additions and 9 deletions

View File

@ -159,7 +159,8 @@ public class WebhookExecutorService
var json = JsonConvert.DeserializeObject<JObject>(e.FormError); var json = JsonConvert.DeserializeObject<JObject>(e.FormError);
var error = json.Value<JObject>("username").Value<JArray>("_errors").First.Value<string>("message"); var error = json.Value<JObject>("username").Value<JArray>("_errors").First.Value<string>("message");
await _rest.CreateMessage(req.ChannelId, new MessageRequest { await _rest.CreateMessage(req.ChannelId, new MessageRequest
{
Content = $"{Emojis.Error} Discord rejected your proxy name: {error.AsCode()}", Content = $"{Emojis.Error} Discord rejected your proxy name: {error.AsCode()}",
AllowedMentions = new AllowedMentions { Parse = { } }, AllowedMentions = new AllowedMentions { Parse = { } },
}); });
@ -183,7 +184,8 @@ public class WebhookExecutorService
{ {
try try
{ {
await _rest.CreateMessage(req.ChannelId, new MessageRequest { await _rest.CreateMessage(req.ChannelId, new MessageRequest
{
Content = $"{Emojis.Error} One or more of the files attached to this message were not able to be proxied because they were too large.", Content = $"{Emojis.Error} One or more of the files attached to this message were not able to be proxied because they were too large.",
AllowedMentions = new AllowedMentions { Parse = { } }, AllowedMentions = new AllowedMentions { Parse = { } },
}); });