Skip to content

Commit

Permalink
fix(events): re-allow no-return listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
AtoraSuunva committed Aug 26, 2024
1 parent a0fa9c8 commit 452d95f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sleetcord",
"version": "2.0.0",
"version": "2.0.1",
"description": "An interaction-first command library for Discord.js",
"license": "MIT",
"author": "AtoraSuunva",
Expand Down
3 changes: 2 additions & 1 deletion src/modules/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export interface SleetContext {
client: Client
}

export type ListenerResult<T = unknown> = Promise<T> | undefined
// biome-ignore lint/suspicious/noConfusingVoidType: Required so a function doesn't need to call `return`
export type ListenerResult<T = unknown> = Promise<T> | void

/** A type of every possible Discord event key */
export type DiscordEvent = keyof ClientEvents
Expand Down

0 comments on commit 452d95f

Please sign in to comment.