Image doesn't work in embed

Hello, i wanna make it so it puts one of the banners i have in kurtz-banners.json. It should randomly choose 1 but it doesnt put any image. When i specifically put one in there, then it works:
const { k_BannerOne, k_BannerTwo, k_BannerThree, k_BannerFour,
k_BannerFive, k_BannerSix, k_BannerServen, k_BannerEight
} = require("../../configuration/kurtz-Banners.json")

let banners = [k_BannerOne, k_BannerTwo, k_BannerThree, k_BannerFour, k_BannerFive, k_BannerSix, k_BannerServen, k_BannerEight];

let randomBanner = Math.floor((Math.random() * banners.length));

.setImage(`${banners[randomBanner]}`)
const { k_BannerOne, k_BannerTwo, k_BannerThree, k_BannerFour,
k_BannerFive, k_BannerSix, k_BannerServen, k_BannerEight
} = require("../../configuration/kurtz-Banners.json")

let banners = [k_BannerOne, k_BannerTwo, k_BannerThree, k_BannerFour, k_BannerFive, k_BannerSix, k_BannerServen, k_BannerEight];

let randomBanner = Math.floor((Math.random() * banners.length));

.setImage(`${banners[randomBanner]}`)
1 Reply
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Want results from more Discord servers?
Add your server