#..

1 messages · Page 1 of 1 (latest)

light cedar
#

whats your code?

strong tendon
#

i dont have an error lol im just asking the guy

light cedar
#

ohh, mb

solemn drift
#

but i got error

light cedar
#

Ok, Explain what you did and explain what the error was.

solemn drift
#
(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)```
strong tendon
#

ok

#

so

#

is this your only file

light cedar
#

Racc, You can take this from here

solemn drift
#

YES

strong tendon
#

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

solemn drift
#

OKK

strong tendon
#

it has no idea what font you want

#

i think

light cedar
#

racc, can I DM you something?

strong tendon
#

i dont use canvas often so im not a wizard

#

yeah

light cedar
#

💀

strong tendon
#

oh lol

#

i forgot i turned off my server dms

light cedar
#

Bahahah

solemn drift
#

nd second error

#
(Use `node --trace-deprecation ...` to show where the warning was created)```
#

i met u tommorw becouse i go to sleep

light cedar
#

mk

strong tendon
#

like

#

embed.setFooter("Hello world")

#

which, while supported, is deprecated

#

the "better" way to do it wuld be

#

embed.setFooter( { text: "Hello world" } )

solemn drift
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

solemn drift
strong tendon
#

ok well

#

it's a warning

#

and it doesn't cause an error

#

it's safe to ignore it

solemn drift
#

But I need my console clear

strong tendon
#

try doing what it says

#

node --trace-deprecation ...

solemn drift
#

Is there any way to to hide it

strong tendon
#

and tell me what it shows

solemn drift