#v14 addfields

1 messages · Page 1 of 1 (latest)

faint dagger
#

i need the exact release

#

discord.js@14.0.0-dev.1640865766.780b7ed would be one, for example

hallow oyster
faint dagger
#

-test

hallow oyster
faint dagger
#

cannot reproduce

#
await msg.reply({
                embeds: [
                    new MessageEmbed().addFields(
                        { name: 'PNG', value: `bar`, inline: true },
                        { name: 'JPG', value: `bar`, inline: true },
                        { name: 'WEBP', value: `bar`, inline: true }
                    )
                ]
            });
hallow oyster
#
const user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author
    const embed = new discord.MessageEmbed()
      .setTitle('Avatar')
      .setAuthor({ name: user.tag, iconURL: user.displayAvatarURL() })
      .setImage(user.displayAvatarURL({ size: 4096, dynamic: true }))
      .setTimestamp()
      .addFields([
        { name: 'PNG', value: `[Link](${user.displayAvatarURL({ size: 4096, dynamic: true, format: 'png' })})`, inline: true },
        { name: 'JPG', value: `[Link](${user.displayAvatarURL({ size: 4096, dynamic: true, format: 'jpg' })})`, inline: true },
        { name: 'WEBP', value: `[Link](${user.displayAvatarURL({ size: 4096, dynamic: true, format: 'webp' })})`, inline: true }
      ])

    message.reply({ embeds: [embed] })```
#

full code for it

faint dagger
#

no error in intellisense, no error on transpile, no error at runtime

#

-ev Discord.version

hallow oyster
#
'14.0.0-dev.1640865766.780b7ed'
```• d.js 14.0.0-dev.1640865766.780b7ed • Type: `string` • time taken: `0.049353ms`
#

may have been an issue with typescript

hallow oyster
faint dagger
#

not too sure what you need a guide for?

sharp sleetBOT
#

<:_:818272565419573308> eval()
The eval() function evaluates JavaScript code represented as a string.

faint dagger
#

that's all it is, really

hallow oyster
faint dagger
#

you take the content, throw away the prefix and command name and shove the rest into eval

#

make sure you properly secure it (so just you can use it) and note all the red boxes on that documentation that tell you that it's dangerous

hallow oyster
faint dagger
#

that might be a good indicator that it's dangerous beyond your comprehension yet and you probably shouldn't have one to begin with

#

if you do stuff wrong this can delete the entire system of the computer you run your bot on

hallow oyster
faint dagger
#

which is still a computer someone runs for you

hallow oyster
faint dagger
#

unlikely, depends on the terms of whoever you rent stuff from

#

anyways, that guide is probably as detailed as you get one

faint dagger
#

it's not really a tool for beginners

#

@hallow oyster so the issue is resolved, somehow?

hallow oyster
#

i wanted to know why on the guide website it shows to not use an array to put each object of data in

faint dagger
#

because you can