#..
1 messages · Page 1 of 1 (latest)
ohh, mb
but i got error
Ok, Explain what you did and explain what the error was.
(node:2059) DeprecationWarning: Passing strings for MessageEmbed#setFooter is deprecated. Pass a sole object instead.
(Use `node --trace-deprecation ...` to show where the warning was created)```
Racc, You can take this from here
YES
ok
let me repaste the code
(async () => {
const Discord = require('discord.js')
const { MessageAttachment, MessageEmbed } = require('discord.js');
const canvas = require('discord-canvas');
goodbyeCanvas = new canvas.Goodbye();
let image = await goodbyeCanvas
.setUsername(message.author.username)
.setDiscriminator(message.author.discriminator)
.setMemberCount(message.guild.members.cache.size)
.setGuildName(message.guild.name)
.setAvatar("${avatar}")
.setBackground("${background}")
.setColor("border", "0076e4")
.setColor("username-box", "0076e4")
.setColor("discriminator-box", "0076e4")
.setColor("message-box", "0076e4")
.setColor("title", "0076e4")
.setColor("avatar", "0076e4")
.setText("message", "lol")
.toAttachment();
let attachment = new Discord.MessageAttachment(image.toBuffer(), "cyclotron-goodbye.png");
const exampleEmbed = new MessageEmbed()
.setTitle('${title}')
.setDescription('${description}')
.setColor("RANDOM")
.setImage('attachment://cyclotron-goodbye.png');
channel.send({ embeds: [exampleEmbed], files: [attachment] });
})()```
so
wooah hold on
OKK
client.on('guildMemberAdd', async (member) => {
const channel = member.guild.channels.cache.find(
(channel) => channel.name === 'general'
);
if (!channel) return;
const canvas = Canvas.
it has no idea what font you want
i think
racc, can I DM you something?
💀
Bahahah
nd second error
(Use `node --trace-deprecation ...` to show where the warning was created)```
i met u tommorw becouse i go to sleep
mk
this is a deprecation warning so it isn't exactly a warning, but this basicalluy just means you're passing a string into setFooter
like
embed.setFooter("Hello world")
which, while supported, is deprecated
the "better" way to do it wuld be
embed.setFooter( { text: "Hello world" } )
i not use .setFooter
@strong tendon
you don't use it all?
odd
it might be because something you use (like a module) uses it
either way, you can ignore it
I not use anything
But I need my console clear
Is there any way to to hide it
and tell me what it shows
K