From c1fe2de75a53bf11ad3fb8e298e82d8348ba2bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DedShot=E2=84=A2=239195?= Date: Tue, 5 May 2020 09:36:40 -0400 Subject: [PATCH] defined variables type --- src/commands/djs.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/djs.ts b/src/commands/djs.ts index fde99d9..129083e 100644 --- a/src/commands/djs.ts +++ b/src/commands/djs.ts @@ -22,11 +22,11 @@ export default class DJS extends Command { const { data } = res; if (!data) return this.error(message.channel, 'Could not find information. Try something else.'); - const name = data.author?.name || ''; - const icon_url = data.author?.icon_url || ''; - const author_url = data.author?.url || ''; - const description = data.description || 'None'; - const title = data.title || ''; + const name: string = data.author?.name || ''; + const icon_url: string = data.author?.icon_url || ''; + const author_url: string = data.author?.url || ''; + const description: string = data.description || 'None'; + const title: string = data.title || ''; const embed = new RichEmbed(); embed.setAuthor(name, icon_url, author_url);