“Discord.js Edit pesan embed” Kode Jawaban

Discord.js MessageEMBED

//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 Edit pesan embed

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

Jawaban yang mirip dengan “Discord.js Edit pesan embed”

Pertanyaan yang mirip dengan “Discord.js Edit pesan embed”

Lebih banyak jawaban terkait untuk “Discord.js Edit pesan embed” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya