Neerav Makwana
349d86c152
fix(discord): move in-check inside try/catch in channel-access helper
...
Wrap the `key in channel` probe inside the existing `try/catch` in `readDiscordChannelPropertySafe` so a throwing Proxy `has` trap (or any other reflective error on the presence check) degrades to `undefined` instead of propagating, matching the existing behavior for throwing getters on the value read.
Add a regression test that exposes the interaction channel through a Proxy whose `has` trap throws on `parentId` and asserts the slash-command path still defers and dispatches.
No behavior change for Carbon prototype getters or plain-object channels: the safe accessor still traverses the prototype chain (required for Carbon's `GuildThreadChannel.parentId`), still returns `undefined` for missing or throwing reads, and still preserves null-to-undefined coercion downstream.
2026-04-22 04:31:31 +01:00
..
2026-04-21 08:47:24 +01:00
2026-04-21 07:02:43 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 09:13:35 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 03:35:15 +01:00
2026-04-20 22:05:39 +01:00
2026-04-21 00:32:42 +01:00
2026-04-21 01:43:17 -07:00
2026-04-20 16:07:14 +01:00
2026-04-22 03:08:36 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 20:55:39 +01:00
2026-04-22 03:35:15 +01:00
2026-04-21 00:54:08 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 00:32:42 +01:00
2026-04-20 23:20:31 +01:00
2026-04-20 13:18:32 +01:00
2026-04-20 23:34:19 +01:00
2026-04-22 04:31:31 +01:00
2026-04-20 22:05:39 +01:00
2026-04-21 00:32:42 +01:00
2026-04-21 02:34:24 +01:00
2026-04-21 00:54:08 +01:00
2026-04-21 21:29:44 +01:00
2026-04-21 02:34:24 +01:00
2026-04-22 03:35:15 +01:00
2026-04-22 03:35:15 +01:00
2026-04-22 03:35:15 +01:00
2026-04-21 00:40:07 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 00:40:07 +01:00
2026-04-20 21:54:49 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 03:35:15 +01:00
2026-04-22 01:48:14 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 09:13:35 +01:00
2026-04-22 03:35:15 +01:00
2026-04-21 05:32:13 +01:00
2026-04-22 02:56:23 +01:00
2026-04-22 04:10:28 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 18:51:43 -07:00
2026-04-20 21:56:17 +01:00
2026-04-20 23:34:19 +01:00
2026-04-21 00:24:18 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 13:53:08 -04:00
2026-04-21 09:13:35 +01:00
2026-04-21 09:13:35 +01:00
2026-04-21 21:29:44 +01:00
2026-04-21 00:40:07 +01:00
2026-04-21 00:40:07 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 03:35:15 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 03:35:15 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 03:35:15 +01:00
2026-04-20 20:55:39 +01:00
2026-04-22 04:24:45 +01:00
2026-04-21 02:34:24 +01:00
2026-04-17 10:14:00 +05:30
2026-04-22 02:56:23 +01:00
2026-04-22 01:43:18 +01:00
2026-04-20 21:03:13 +01:00
2026-04-21 02:41:26 +01:00
2026-04-22 04:24:45 +01:00
2026-04-20 20:55:39 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 20:55:39 +01:00
2026-04-20 22:34:11 +01:00
2026-04-21 21:29:44 +01:00
2026-04-22 02:56:23 +01:00
2026-04-20 17:11:33 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 12:00:28 -06:00
2026-04-20 13:16:40 +01:00
2026-04-17 10:14:00 +05:30
2026-04-21 02:34:24 +01:00
2026-04-22 02:56:23 +01:00
2026-04-21 00:32:42 +01:00
2026-04-17 10:14:00 +05:30
2026-04-22 01:43:18 +01:00
2026-04-20 23:04:10 +01:00
2026-04-21 00:40:07 +01:00
2026-04-20 20:55:39 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 20:55:39 +01:00
2026-04-22 01:43:18 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 13:16:40 +01:00
2026-04-20 16:34:48 +01:00
2026-04-20 13:16:40 +01:00
2026-04-22 04:24:45 +01:00
2026-04-22 03:35:15 +01:00
2026-04-20 13:16:40 +01:00
2026-04-21 09:13:35 +01:00
2026-04-21 07:28:52 -07:00
2026-04-20 19:37:20 +01:00
2026-04-17 02:23:49 -04:00
2026-04-20 22:09:16 +01:00
2026-04-06 15:38:04 +01:00
2026-04-09 23:59:00 +01:00
2026-04-20 22:09:16 +01:00