Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Aug 23, 2023
1 parent 21d3789 commit d05d26f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
10 changes: 8 additions & 2 deletions src/applicationCommand/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { createComponentDecorator } from '../core'
import { ApplicationCommandComponent } from './ApplicationCommand'

export class SubCommandGroup {
constructor(public options: Omit<ChatInputApplicationCommandData, 'type'>, public guilds?: string[]) {}
constructor(
public options: Omit<ChatInputApplicationCommandData, 'type'>,
public guilds?: string[],
) {}

command(options: Omit<ApplicationCommandSubGroupData, 'options' | 'type'>): MethodDecorator {
const cmd = new ApplicationCommandComponent({
Expand All @@ -21,7 +24,10 @@ export class SubCommandGroup {
}

export class SubCommandGroupChild {
constructor(public options: Omit<ApplicationCommandSubGroupData, 'options' | 'type'>, public parent: SubCommandGroup) {}
constructor(
public options: Omit<ApplicationCommandSubGroupData, 'options' | 'type'>,
public parent: SubCommandGroup,
) {}

command(options: Omit<ChatInputApplicationCommandData, 'options' | 'type'>): MethodDecorator {
const cmd = new ApplicationCommandComponent({
Expand Down
6 changes: 5 additions & 1 deletion src/core/structures/CommandClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export class CommandClient extends EventEmitter {

owners: Set<Snowflake> = new Set()

constructor(public discord: Client, public logger: Logger<unknown> = new Logger({ prettyLogTimeZone: 'local' }), loggerOptions: ISettingsParam<unknown> = {}) {
constructor(
public discord: Client,
public logger: Logger<unknown> = new Logger({ prettyLogTimeZone: 'local' }),
loggerOptions: ISettingsParam<unknown> = {},
) {
super()

this.ctsLogger = logger.getSubLogger({
Expand Down
5 changes: 4 additions & 1 deletion src/core/structures/Registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export class Registry {

globalHooks: Record<string, ComponentHookFn<unknown[]>[]> = {}

constructor(logger: Logger<unknown>, public client: CommandClient) {
constructor(
logger: Logger<unknown>,
public client: CommandClient,
) {
this.logger = logger.getSubLogger({
name: chalk.green('Registry'),
})
Expand Down

0 comments on commit d05d26f

Please sign in to comment.