Is there a way of making discord embeds better?

dali ajili

I'm developing my own discord bot, my issues are the embeds, are there some trick or modules in node.js that can help me beautify those?

The only thing I had to try were the default embeds, which to be fair I don't like much

else if (message.content.startsWith(`${ prefix }queue`)) {
    if (!serverQueue){
        message.channel.send('Nothing playing');
        message.channel.send({
            embed: {
                color: 13702935,
                description: `**Song Queue**
                ${serverQueue.songs.map(song => `**-**${song.title}`).join("\n")}
                **Now Playing:** ${serverQueue.songs[0].title}
                `
            }
        }
    }
}
Broken Soul
var embed = new Discord.RichEmbed()
.setAuthor('Song Queue',message.guild.iconURL) //<- optional
.addField(`Song Queue`,`${serverQueue.songs.map(song => `**-**${song.title}`).join("\n")}`,true)
.addField(`Now Playing`,`${serverQueue.songs[0].title}`,true)
.setTimestamp()
.setColor("#hexcode")
.setFooter(`${message.author.tag}`, message.author.avatarURL)
message.channel.sendEmbed(embed);

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Better way of making program that calculates sum and average in java

分類Dev

How can you attach many discord embeds to one message?

分類Dev

Is there a better way of comparing dates

分類Dev

A better way to detect the cursor?

分類Dev

Better way to return boolean

分類Dev

A better way to introspect a capture

分類Dev

Is there a better way to do this? BASH

分類Dev

better way to do this in MATLAB?

分類Dev

Is there a better way to loop code?

分類Dev

Discord.js message.embeds [0]は何も出力しません。

分類Dev

Making a command with multiple arguments in discord.js

分類Dev

Is there a better way to define a global variable?

分類Dev

Decorator with Arguments: Would this be a better way?

分類Dev

Is this possible using LEAD or is there a better way?

分類Dev

Is there a better way to do Insertion Sort?

分類Dev

Is there a better way to do this than echo?

分類Dev

Better way to override a function definition

分類Dev

Is there a better way to divide this string into substrings?

分類Dev

Why server-side script is better when making a contact form?

分類Dev

Which is performs better? Many connections making few queries/sec, or a few connections making many queries/sec?

分類Dev

More concise way of making quadratically spaced sequence?

分類Dev

is there a way to making v-for value dynamic?

分類Dev

Whats the best way of making a web browser in Ubuntu?

分類Dev

What is the best way of making webservice secure

分類Dev

Is there a better way to re-use plots Matplotlib?

分類Dev

Better way of capturing multiple same tags?

分類Dev

Better way to execute nested for loops to generate a dict?

分類Dev

Better way of error handling in Kafka Consumer

分類Dev

rxJava better way to wait on a specific sequence of values

Related 関連記事

  1. 1

    Better way of making program that calculates sum and average in java

  2. 2

    How can you attach many discord embeds to one message?

  3. 3

    Is there a better way of comparing dates

  4. 4

    A better way to detect the cursor?

  5. 5

    Better way to return boolean

  6. 6

    A better way to introspect a capture

  7. 7

    Is there a better way to do this? BASH

  8. 8

    better way to do this in MATLAB?

  9. 9

    Is there a better way to loop code?

  10. 10

    Discord.js message.embeds [0]は何も出力しません。

  11. 11

    Making a command with multiple arguments in discord.js

  12. 12

    Is there a better way to define a global variable?

  13. 13

    Decorator with Arguments: Would this be a better way?

  14. 14

    Is this possible using LEAD or is there a better way?

  15. 15

    Is there a better way to do Insertion Sort?

  16. 16

    Is there a better way to do this than echo?

  17. 17

    Better way to override a function definition

  18. 18

    Is there a better way to divide this string into substrings?

  19. 19

    Why server-side script is better when making a contact form?

  20. 20

    Which is performs better? Many connections making few queries/sec, or a few connections making many queries/sec?

  21. 21

    More concise way of making quadratically spaced sequence?

  22. 22

    is there a way to making v-for value dynamic?

  23. 23

    Whats the best way of making a web browser in Ubuntu?

  24. 24

    What is the best way of making webservice secure

  25. 25

    Is there a better way to re-use plots Matplotlib?

  26. 26

    Better way of capturing multiple same tags?

  27. 27

    Better way to execute nested for loops to generate a dict?

  28. 28

    Better way of error handling in Kafka Consumer

  29. 29

    rxJava better way to wait on a specific sequence of values

ホットタグ

アーカイブ