Skip to content

Commit

Permalink
Fix error message for invalid receiver decorator
Browse files Browse the repository at this point in the history
Co-authored-by: Bloxs <[email protected]>
  • Loading branch information
ZiomaleQ and Blocksnmore authored Sep 4, 2023
1 parent e6c2c8d commit 714f976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export function messageComponent(customID?: string): MessageComponentDecorator {
if (client._decoratedComponents === undefined)
client._decoratedComponents = []
if (typeof desc.value !== 'function') {
throw new Error('@userContextMenu decorator requires a function')
throw new Error('@messageComponent decorator requires a function')
} else
client._decoratedComponents.push({
customID: customID ?? prop,
Expand Down

0 comments on commit 714f976

Please sign in to comment.