diff options
Diffstat (limited to 'packages/gateway/src/commands/webhook.ts')
| -rw-r--r-- | packages/gateway/src/commands/webhook.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/gateway/src/commands/webhook.ts b/packages/gateway/src/commands/webhook.ts index a3b6b72..a524d8a 100644 --- a/packages/gateway/src/commands/webhook.ts +++ b/packages/gateway/src/commands/webhook.ts @@ -88,6 +88,11 @@ export const handleWebhookCommand = async ( ): Promise<boolean> => { if (message.author.bot) return false; + const application = await message.client.application?.fetch(); + const ownerId = application?.owner?.id; + + if (message.author.id !== ownerId) return false; + const content = message.content.trim(); const commandMatch = content.match( /^uma!wh\s+(\d+)\s*,\s*([^\s,]+)\s*,\s*([^,]+)\s*,\s*(.+)$/s, |