#v14 addfields
1 messages · Page 1 of 1 (latest)
i need the exact release
discord.js@14.0.0-dev.1640865766.780b7ed would be one, for example
-test
bar
bar
bar
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 }
)
]
});
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
no error in intellisense, no error on transpile, no error at runtime
-ev Discord.version
'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
hi this is seperate but do you know of a guide for making an eval command? (for legacy commands)
not too sure what you need a guide for?
<:_:818272565419573308> eval()
The eval() function evaluates JavaScript code represented as a string.
that's all it is, really
idk how to make one
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
yep thats the part i want a guide for... https://anidiots.guide/examples/making-an-eval-command/ is the ONLY ONE ive found and it is difficult to follow
In JavaScript (and node), eval() is a function that evaluates any string as javascript code and actually executes it. Meaning, if I
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
ik how to secure it in terms of so that only I can use it, using my ID, but stuff about parsing out tokens and stuff is wierd
oh shit
i use a vps tho...
which is still a computer someone runs for you
ah would I be sued
unlikely, depends on the terms of whoever you rent stuff from
anyways, that guide is probably as detailed as you get one
most people using code evaluation do it based on their understanding and documentation (above)
it's not really a tool for beginners
@hallow oyster so the issue is resolved, somehow?
i had the issue resolved yes
i wanted to know why on the guide website it shows to not use an array to put each object of data in
because you can