问题
I really want to use gifs in embeds in my discord bot, and I've seen other bots do the same but I couldn't find a solution how to insert it from local. So could you help me?
I've tried the embed's .WithImageUrl
but that didn't work and I haven't found anything else to try.
EmbedBuilder confused = new EmbedBuilder();
confused.WithAuthor($"Confused", Context.Guild.CurrentUser.GetAvatarUrl())
.WithDescription($"{Context.User.Mention} is confused")
.WithImageUrl("C:/Users/***/***/gifthatIwant.gif");`
Also tried with \
but that was a failure too
"Url must be a well-formed URI.
Parameter name: URL"
来源:https://stackoverflow.com/questions/57125408/is-there-a-way-to-insert-pictures-gifs-to-embeds-from-local-storage