-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from ghostdevv/fix-command-event-type
- Loading branch information
Showing
5 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"jellycommands": patch | ||
--- | ||
|
||
fix: type error when manually adding command/event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { BaseCommand } from './types/BaseCommand'; | ||
import { AnyCommand } from './types/types'; | ||
|
||
export type GlobalCommands = Set<BaseCommand>; | ||
export type GuildCommands = Map<string, Set<BaseCommand>>; | ||
export type GlobalCommands = Set<AnyCommand>; | ||
export type GuildCommands = Map<string, Set<AnyCommand>>; | ||
|
||
export type CommandIDMap = Map<string, BaseCommand>; | ||
export type CommandIDMap = Map<string, AnyCommand>; | ||
|
||
export interface ResolvedCommands { | ||
guildCommands: GuildCommands; | ||
globalCommands: GlobalCommands; | ||
commands: Set<BaseCommand>; | ||
commands: Set<AnyCommand>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { MessageCommand } from './messageCommands/MessageCommand'; | ||
import type { UserCommand } from './userCommands/UserCommand'; | ||
import type { Command } from './commands/Command'; | ||
import type { BaseCommand } from './BaseCommand'; | ||
|
||
export type AnyCommand = BaseCommand | Command | UserCommand | MessageCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters