Skip to content

Commit

Permalink
chore(tsconfig): set importsNotUsedAsValues to error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 committed Sep 26, 2020
1 parent 51e0572 commit 2591c44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/commands/AboutCommand.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import BaseCommand from "../structures/BaseCommand";
import Jukebox from "../structures/Jukebox";
import { Message, MessageEmbed, version } from "discord.js";
import { MessageEmbed, version } from "discord.js";
import { uptime as osUptime } from "os";
import path from "path";
import { formatMs } from "../utils/formatMs";
import type Jukebox from "../structures/Jukebox";
import type { IMessage } from "../../typings";

export default class AboutCommand extends BaseCommand {
public constructor(public client: Jukebox, public readonly path: string) {
Expand All @@ -14,7 +15,7 @@ export default class AboutCommand extends BaseCommand {
});
}

public async execute(message: Message): Promise<void> {
public async execute(message: IMessage): Promise<void> {
message.channel.send(new MessageEmbed()
.setAuthor(`${this.client.user!.username} - Just a simple Discord music bot.`)
.setDescription(`
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"importsNotUsedAsValues": "error",
"typeRoots": [
"node_modules/@types",
"typings"
Expand Down

0 comments on commit 2591c44

Please sign in to comment.