Animated bot banner

How to set animated banner on discord bot? Ik its through api, but how?
2 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
NyR
NyR10mo ago
const { Routes, DataResolver } = require('discord.js');
// If you have client logged in or use REST
await client.rest.patch(Routes.user(), {
body: { banner: await DataResolver.resolveImage("GIF URL or Path") }
})
const { Routes, DataResolver } = require('discord.js');
// If you have client logged in or use REST
await client.rest.patch(Routes.user(), {
body: { banner: await DataResolver.resolveImage("GIF URL or Path") }
})
const { REST, Routes, DataResolver } = require("discord.js");

const rest = new REST().setToken(
"Your Token"
);
await rest.patch(Routes.user(), {
body: { banner: await DataResolver.resolveImage("Gif Path or URL") },
});
const { REST, Routes, DataResolver } = require("discord.js");

const rest = new REST().setToken(
"Your Token"
);
await rest.patch(Routes.user(), {
body: { banner: await DataResolver.resolveImage("Gif Path or URL") },
});
Using REST
Want results from more Discord servers?
Add your server