defined variables type
parent
256ad170cb
commit
c1fe2de75a
|
@ -22,11 +22,11 @@ export default class DJS extends Command {
|
||||||
const { data } = res;
|
const { data } = res;
|
||||||
if (!data) return this.error(message.channel, 'Could not find information. Try something else.');
|
if (!data) return this.error(message.channel, 'Could not find information. Try something else.');
|
||||||
|
|
||||||
const name = data.author?.name || '';
|
const name: string = data.author?.name || '';
|
||||||
const icon_url = data.author?.icon_url || '';
|
const icon_url: string = data.author?.icon_url || '';
|
||||||
const author_url = data.author?.url || '';
|
const author_url: string = data.author?.url || '';
|
||||||
const description = data.description || 'None';
|
const description: string = data.description || 'None';
|
||||||
const title = data.title || '';
|
const title: string = data.title || '';
|
||||||
|
|
||||||
const embed = new RichEmbed();
|
const embed = new RichEmbed();
|
||||||
embed.setAuthor(name, icon_url, author_url);
|
embed.setAuthor(name, icon_url, author_url);
|
||||||
|
|
Loading…
Reference in New Issue