diff --git a/src/commands/djs.ts b/src/commands/djs.ts index 44e6367..c94a0c1 100644 --- a/src/commands/djs.ts +++ b/src/commands/djs.ts @@ -25,10 +25,9 @@ export default class DJS extends Command { return this.client.util.handleError(err, message, this); } - const { data }: AxiosResponse = res; - if (!data) return this.error(message.channel, 'Could not find information. Try something else.'); + if (!res.data) return this.error(message.channel, 'Could not find information. Try something else.'); - const embed = new RichEmbed(data); + const embed = new RichEmbed(res.data); embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setTimestamp(); return message.channel.createMessage({ embed });