'Passing strings for MessageEmbed#setFooter is deprecated

I'm getting this warning in the terminal when running my bot code:

(node:6220) DeprecationWarning: Passing strings for MessageEmbed#setFooter is deprecated. Pass a sole object instead.(Use node --trace-deprecation ... to show where the warning was created)



Solution 1:[1]

D.JS v13 changes

// you used:
embed.setFooter("test")
// in discord.js v13:
embed.setFooter({
text: "test"
})

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pylyp Dukhov