mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Fix Botinfo
This commit is contained in:
@@ -17,10 +17,7 @@ module.exports = class BotSearchCommand extends Command {
|
|||||||
args: [{
|
args: [{
|
||||||
key: 'bot',
|
key: 'bot',
|
||||||
prompt: 'Which bot do you want to get information for?',
|
prompt: 'Which bot do you want to get information for?',
|
||||||
type: 'user',
|
type: 'user'
|
||||||
parse: bot => {
|
|
||||||
return bot.id;
|
|
||||||
}
|
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -31,6 +28,7 @@ module.exports = class BotSearchCommand extends Command {
|
|||||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||||
}
|
}
|
||||||
let { bot } = args;
|
let { bot } = args;
|
||||||
|
bot = bot.id;
|
||||||
try {
|
try {
|
||||||
const response = await request
|
const response = await request
|
||||||
.get(`https://bots.discord.pw/api/bots/${bot}`)
|
.get(`https://bots.discord.pw/api/bots/${bot}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user