Skip to content

Commit

Permalink
feat(extension): generic Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
star0202 authored and paring-chan committed Mar 9, 2024
1 parent 4efee77 commit f3e7b0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/extensions/Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import type { ComponentArgument } from '../components/ComponentArgument'
import { ConverterComponent } from '../converter'
import { CommandClient } from '../structures'

export class Extension {
export class Extension<Client extends CommandClient = CommandClient> {
protected get commandClient() {
return CommandClient.getFromModule(this)
return CommandClient.getFromModule(this) as Client
}

protected get client() {
Expand Down

0 comments on commit f3e7b0d

Please sign in to comment.