Browse Source

Incorrect variable assignment (#959)

The username parameter was being used to set args.AvatarUrl as opposed to the actual avatarUrl parameter provided
tags/2.0
Anu6is Christopher F 7 years ago
parent
commit
88765970ec
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Webhook/WebhookClientHelper.cs

+ 1
- 1
src/Discord.Net.Webhook/WebhookClientHelper.cs View File

@@ -49,7 +49,7 @@ namespace Discord.Webhook
if (username != null)
args.Username = username;
if (avatarUrl != null)
args.AvatarUrl = username;
args.AvatarUrl = avatarUrl;
if (embeds != null)
args.Embeds = embeds.Select(x => x.ToModel()).ToArray();
var msg = await client.ApiClient.UploadWebhookFileAsync(client.Webhook.Id, args, options).ConfigureAwait(false);


Loading…
Cancel
Save