mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Add Spell/Trap type to yugioh
This commit is contained in:
@@ -49,10 +49,10 @@ module.exports = class YuGiOhCommand extends Command {
|
|||||||
.setAuthor('Yu-Gi-Oh!', 'https://i.imgur.com/AJNBflD.png', 'http://www.yugioh-card.com/')
|
.setAuthor('Yu-Gi-Oh!', 'https://i.imgur.com/AJNBflD.png', 'http://www.yugioh-card.com/')
|
||||||
.setThumbnail(data.image_url)
|
.setThumbnail(data.image_url)
|
||||||
.setFooter(data.id)
|
.setFooter(data.id)
|
||||||
.addField('❯ Type', data.type, true);
|
.addField('❯ Type', data.type, true)
|
||||||
|
.addField(data.type.includes('Monster') ? '❯ Race' : '❯ Spell Type', data.race, true);
|
||||||
if (data.type.includes('Monster')) {
|
if (data.type.includes('Monster')) {
|
||||||
embed
|
embed
|
||||||
.addField('❯ Race', data.race, true)
|
|
||||||
.addField('❯ Attribute', data.attribute, true)
|
.addField('❯ Attribute', data.attribute, true)
|
||||||
.addField('❯ Level', data.level || 'N/A', true)
|
.addField('❯ Level', data.level || 'N/A', true)
|
||||||
.addField('❯ ATK', formatNumber(data.atk), true)
|
.addField('❯ ATK', formatNumber(data.atk), true)
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "103.0.3",
|
"version": "103.0.4",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user