mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
YuGiOh Fix
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class YuGiOhCommand extends commando.Command {
|
|||||||
request
|
request
|
||||||
.get('http://yugiohprices.com/api/card_data/' + cardName)
|
.get('http://yugiohprices.com/api/card_data/' + cardName)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
if(response.data.card_type === 'monster') {
|
if(response.body.data.card_type === 'monster') {
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.RichEmbed()
|
||||||
.setColor(0xBE5F1F)
|
.setColor(0xBE5F1F)
|
||||||
.setTitle(response.body.data.name)
|
.setTitle(response.body.data.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user