Invalid avatar URL sent when executing webhook with no avatar
Created by: spiralw
Details
DiscordWebhook.AvatarUrl doesn't check for an avatar hash before returning an URL. This ends up returning an invalid avatar URL (for example https://cdn.discordapp.com/avatars/776336244674002984/.png?size=1024
).
Steps to reproduce
- Create a webhook, and do not add an avatar.
- Send a webhook message, and do not provide an avatar URL. (Relevant DSharpPlus code which uses the webhook's own avatar URL is at the end of this line)
- The message will be sent with an invalid avatar URL (which creates link unfurling issues on Discord's side).