I was looking to get the footer of an embed, i tried doing this but didnt work, any help?
for (var i = 0; i < message.embeds.length; i++) {
if (message.embeds[i] &&
message.embeds[i].footer &&
message.embeds[i].footer.includes('test')) {
//do stuffs
}
}
Ok i got the answer:-
for (var i = 0; i < message.embeds.length; i++) {
if (message.embeds[i] &&
message.embeds[i].footer &&
message.embeds[i].footer.text.includes('test')) {
//do stuffs
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.