Skip to content

Commit 4471c30

Browse files
committed
Remove paranoid snowflake checking
1 parent 56817c7 commit 4471c30

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

backend/src/plugin/core/commandEngine/safeArgs.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { isSnowflake } from "#common/snowflake.ts";
21
import { INTERNAL_TYPE_INTEGRITY } from "#environment.ts";
32
import { OptionType, type AnyArgsValue, type AnyArgsValueItem, type Option } from "#plugin/core/public/command.ts";
43

@@ -150,9 +149,6 @@ function validateType(type: OptionType, value: unknown): void {
150149
if (typeof value !== "string")
151150
throw new Error(`typeof value is '${typeof value}'; expected 'string'`);
152151

153-
if (!isSnowflake(value))
154-
throw new Error(`isSnowflake('${value}') is false`);
155-
156152
break;
157153
case OptionType.Duration:
158154
if (typeof value !== "number")

0 commit comments

Comments
 (0)