0
if(message.content.startsWith(config.prefix + "övgü")) {

        var c1 = message.content.split(" ")

        if(c1.length < 3) {
            return message.reply({content:"**Lütfen bir steam64ID ve miktar giriniz.**"})
        }

        var steam64ID = c1[1];
        var steamidResolver = require("steamid-resolver");

        steamidResolver.steamID64ToFullInfo(String(steam64ID), (err, info) => {
            if(err) return message.reply({content: "**Lütfen geçerli bir steam64ID giriniz.**"});

    client.channels.cache.get(config.channel).send({content: `~commend ${steam64ID} ${count}`})
    return message.reply({ content: "nice"})

Here, when command is sent as a message, it tags the user who wrote it and gives a "nice" reply as a message, how can I embed it?

1 Answer 1

1
client.channels.cache.get(config.channel).send({content: `~commend ${steam64ID} ${count}`})

const embed = new MessageEmbed()
.setTitle('nice')
.setDescription('nice')
.setColor('<your color>')

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

Is this what you wanted to do?

Sign up to request clarification or add additional context in comments.

10 Comments

yes but giving error, not responding as embed
Can you show what error it says?
gives message in the if(err) code
edit your post with your whole code with error
it gives content in if(err) code as the answer
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.