Skip to content

attempt at clearing user's message embedding fails #2

@kepler471

Description

@kepler471

dvembed/handlers.go

Lines 33 to 37 in 8651edf

blank := discordgo.MessageEmbed{}
_, err = s.ChannelMessageEditEmbed(c, m.ID, &blank)
if err != nil {
log.Printf("Error removing %s's embedded v.redd.it image: %v", m.Author.Username, err)
}

When a user posts a link, the link is embedded with either a reddit icon, or a preview image of the v.redd.it media.
I attempted to replace the user's message embed with a blank embed but it fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions