add dc img proxy and enable it for welcome bot

This commit is contained in:
Seraphim Strub 2023-10-13 20:25:03 +02:00
parent 717f3d1bf5
commit f9268f31e9
3 changed files with 83 additions and 1 deletions

View file

@ -30,7 +30,8 @@ func JoinEvent(event *events.GuildMemberJoin) {
SetEmbeds(discord.NewEmbedBuilder().
SetColor(16068661).
SetTimestamp(time.Now()).
SetThumbnail(user.EffectiveAvatarURL(discord.WithSize(1024))).
//SetThumbnail(user.EffectiveAvatarURL(discord.WithSize(1024))).
SetThumbnail(fmt.Sprintf("https://app11.rvo.one/api/v1/discord/avatar/%s", user.ID.String())).
AddField(
fmt.Sprintf("Welcome to the %v Server", guild.Name),
fmt.Sprintf("Welcome %v (`%v`) on %v 🍎", user.Mention(), user.Username, guild.Name), false).