Is there a way to insert pictures/gifs to embeds from local storage?

我只是一个虾纸丫 提交于 2021-01-29 17:39:56

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!