defined variables type

merge-requests/12/head
DedShot™#9195 2020-05-05 09:36:40 -04:00 committed by Bsian
parent c5002557fd
commit aafed2980c
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 5 additions and 5 deletions

View File

@ -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);