Incorrect variable assignment (#959)

The username parameter was being used to set args.AvatarUrl as opposed to the actual avatarUrl parameter provided
This commit is contained in:
Anu6is
2018-02-22 16:02:47 -05:00
committed by Christopher F
parent 500f5f434a
commit 88765970ec

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);