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:
@@ -49,7 +49,7 @@ namespace Discord.Webhook
|
|||||||
if (username != null)
|
if (username != null)
|
||||||
args.Username = username;
|
args.Username = username;
|
||||||
if (avatarUrl != null)
|
if (avatarUrl != null)
|
||||||
args.AvatarUrl = username;
|
args.AvatarUrl = avatarUrl;
|
||||||
if (embeds != null)
|
if (embeds != null)
|
||||||
args.Embeds = embeds.Select(x => x.ToModel()).ToArray();
|
args.Embeds = embeds.Select(x => x.ToModel()).ToArray();
|
||||||
var msg = await client.ApiClient.UploadWebhookFileAsync(client.Webhook.Id, args, options).ConfigureAwait(false);
|
var msg = await client.ApiClient.UploadWebhookFileAsync(client.Webhook.Id, args, options).ConfigureAwait(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user