Put the title on a separated message beacause discord mobile dosent support emote on title
This commit is contained in:
parent
02d4e78fdb
commit
08a4e86881
1 changed files with 2 additions and 2 deletions
|
@ -40,21 +40,21 @@ class EvalCommand extends Command {
|
||||||
const evalEmbed = new MessageEmbed()
|
const evalEmbed = new MessageEmbed()
|
||||||
.setColor('#00FF00')
|
.setColor('#00FF00')
|
||||||
.setThumbnail('https://cdn4.iconfinder.com/data/icons/gradient-ui-1/512/success-512.png')
|
.setThumbnail('https://cdn4.iconfinder.com/data/icons/gradient-ui-1/512/success-512.png')
|
||||||
.setTitle('<a:orangejustice:522142267490697236> Eval succes <a:orangejustice:522142267490697236>')
|
|
||||||
.addField('Input', `\`\`\`js\n${code}\`\`\``)
|
.addField('Input', `\`\`\`js\n${code}\`\`\``)
|
||||||
.addField('Output', `\`\`\`js\n${clean(evaled)}\`\`\``)
|
.addField('Output', `\`\`\`js\n${clean(evaled)}\`\`\``)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
message.channel.send('<a:orangejustice:522142267490697236> Eval succes <a:orangejustice:522142267490697236>');
|
||||||
message.channel.send(evalEmbed);
|
message.channel.send(evalEmbed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const errorEmbed = new MessageEmbed()
|
const errorEmbed = new MessageEmbed()
|
||||||
.setColor('#FF0000')
|
.setColor('#FF0000')
|
||||||
.setThumbnail('https://cdn4.iconfinder.com/data/icons/the-weather-is-nice-today/64/weather_48-512.png')
|
.setThumbnail('https://cdn4.iconfinder.com/data/icons/the-weather-is-nice-today/64/weather_48-512.png')
|
||||||
.setTitle('Eval failed <:sadpepe:534399181679230986>')
|
|
||||||
.addField('Input', `\`\`\`js\n${args.eval}\`\`\``)
|
.addField('Input', `\`\`\`js\n${args.eval}\`\`\``)
|
||||||
.addField('Output', `\`\`\`js\n${clean(err)}\`\`\``)
|
.addField('Output', `\`\`\`js\n${clean(err)}\`\`\``)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
message.channel.send('Eval failed <:sadpepe:534399181679230986>');
|
||||||
message.channel.send(errorEmbed);
|
message.channel.send(errorEmbed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue