“Discord.js Edytuj Osadza wiadomość” Kod odpowiedzi

Discord.js MessageMbed

//top of file
const Discord = require('discord.js')

//example (inside of a command)

const embed = new Discord.Message.Embed()
embed.setAuthor(`example`)
embed.setTitle(`example`)
embed.setDescription(`example`)

message.channel.send({embed});

//there are obviously some other add-ons, such as AuthorIcon and URL.
You on Kazoo!

Discord.js Edytuj Osadza wiadomość

const countdownEmbed = new MessageEmbed()
    .setDescription('test1')

const countdownEmbed2 = new MessageEmbed()
    .setDescription('test2')
    .setColor('RED')

message.channel.send({ embed: countdownEmbed }).then((msg) => {
    setTimeout(function () {
        msg.edit(countdownEmbed2);
    }, 1000)
})
Dark Deer

Odpowiedzi podobne do “Discord.js Edytuj Osadza wiadomość”

Pytania podobne do “Discord.js Edytuj Osadza wiadomość”

Więcej pokrewnych odpowiedzi na “Discord.js Edytuj Osadza wiadomość” w JavaScript

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu