mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class AnilistCommand extends Command {
|
|||||||
try {
|
try {
|
||||||
const data = await this.search(query);
|
const data = await this.search(query);
|
||||||
if (!data || !data.id || !data.name) return msg.say('Could not find any results.');
|
if (!data || !data.id || !data.name) return msg.say('Could not find any results.');
|
||||||
return msg.say(`https://anilist.co/user/${data.name}`, {
|
return msg.say(`<https://anilist.co/user/${data.name}>`, {
|
||||||
files: [{ attachment: `https://img.anili.st/user/${data.id}`, name: 'anilist.png' }]
|
files: [{ attachment: `https://img.anili.st/user/${data.id}`, name: 'anilist.png' }]
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user