chore: lint
This commit is contained in:
parent
ff70c26dae
commit
e2a6ee208b
@ -159,7 +159,8 @@ public class WebhookExecutorService
|
||||
var json = JsonConvert.DeserializeObject<JObject>(e.FormError);
|
||||
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()}",
|
||||
AllowedMentions = new AllowedMentions { Parse = { } },
|
||||
});
|
||||
@ -183,7 +184,8 @@ public class WebhookExecutorService
|
||||
{
|
||||
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.",
|
||||
AllowedMentions = new AllowedMentions { Parse = { } },
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user