mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
bug
This commit is contained in:
@@ -31,7 +31,7 @@ module.exports = class SteamCommand extends Command {
|
|||||||
term: query
|
term: query
|
||||||
});
|
});
|
||||||
if (!search.body.items.length) return msg.say('Could not find any results.');
|
if (!search.body.items.length) return msg.say('Could not find any results.');
|
||||||
const { id } = search.body.items[0];
|
const { id, tiny_image } = search.body.items[0];
|
||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.get('https://store.steampowered.com/api/appdetails')
|
.get('https://store.steampowered.com/api/appdetails')
|
||||||
.query({ appids: id });
|
.query({ appids: id });
|
||||||
@@ -50,7 +50,7 @@ module.exports = class SteamCommand extends Command {
|
|||||||
.setAuthor('Steam', 'https://i.imgur.com/xxr2UBZ.png')
|
.setAuthor('Steam', 'https://i.imgur.com/xxr2UBZ.png')
|
||||||
.setTitle(data.name)
|
.setTitle(data.name)
|
||||||
.setURL(`http://store.steampowered.com/app/${data.steam_appid}`)
|
.setURL(`http://store.steampowered.com/app/${data.steam_appid}`)
|
||||||
.setThumbnail(search.body.tiny_image)
|
.setThumbnail(tiny_image)
|
||||||
.addField('❯ Price',
|
.addField('❯ Price',
|
||||||
price, true)
|
price, true)
|
||||||
.addField('❯ Metascore',
|
.addField('❯ Metascore',
|
||||||
|
|||||||
Reference in New Issue
Block a user