This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
An error has occurred: member.user.bannerURL is not a function #3
Comments
Mind providing a snippet of code of it? |
I can't right now, can you send me like how it supposed to work? I'm using a command handler I don't know of that's the cause. |
The examples should do it for now I assume. https://github.com/Tolfix/discord-banner#examples |
Index.js: require('dotenv').config();
require('discord-banner')(process.env.BOT_TOKEN);
const Discord = require('discord.js');
const client = new Discord.Client({
intents: 32767,
partials: [
'MESSAGE',
'CHANNEL',
'REACTION',
'GUILD_MEMBER',
'USER',
],
}); User-info.js: const embed = new MessageEmbed().setImage(await member.user.bannerURL())
message.channel.send({ embeds: [ embed ] }); That is my code |
Seems fine with me. |
"discord-banner": "^1.6.7",
"discord.js": "^13.0.1" These are my versions @Tolfx |
Should be fine what I've been testing, but you can still use const { getUserBanner } = require("discord-banner"); I'll look into it when I have the time. |
ok |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
My code has the
require('discord-banner')(process.env.BOT_TOKEN);
above where I instate client but for some reason I still getAn error has occurred: member.user.bannerURL is not a function
How to fix?The text was updated successfully, but these errors were encountered: