From 714f976546565b7074803af63ea9e25ac9a7c6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw?= Date: Mon, 4 Sep 2023 20:11:22 +0200 Subject: [PATCH] Fix error message for invalid receiver decorator Co-authored-by: Bloxs <51055767+Blocksnmore@users.noreply.github.com> --- src/interactions/decorators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interactions/decorators.ts b/src/interactions/decorators.ts index 5d1b2380..1fb9dc4a 100644 --- a/src/interactions/decorators.ts +++ b/src/interactions/decorators.ts @@ -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,