From f2995073e033b050ab459c42b480e626f3f6ae8e Mon Sep 17 00:00:00 2001 From: Noel Date: Sat, 31 Jul 2021 01:05:50 +0200 Subject: [PATCH] feat(Globals): revert template bigint type to string type (#171) BREAKING CHANGE: The type for Snowflake and Permissions is reverted from the `${bigint}` template type back to a normal string type --- deno/globals.ts | 4 ++-- globals.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/globals.ts b/deno/globals.ts index a393c018..01c9b8ce 100644 --- a/deno/globals.ts +++ b/deno/globals.ts @@ -1,13 +1,13 @@ /** * https://discord.com/developers/docs/reference#snowflakes */ -export type Snowflake = `${bigint}`; +export type Snowflake = string; /** * https://discord.com/developers/docs/topics/permissions * @internal */ -export type Permissions = `${bigint}`; +export type Permissions = string; /** * https://discord.com/developers/docs/reference#message-formatting-formats diff --git a/globals.ts b/globals.ts index a393c018..01c9b8ce 100644 --- a/globals.ts +++ b/globals.ts @@ -1,13 +1,13 @@ /** * https://discord.com/developers/docs/reference#snowflakes */ -export type Snowflake = `${bigint}`; +export type Snowflake = string; /** * https://discord.com/developers/docs/topics/permissions * @internal */ -export type Permissions = `${bigint}`; +export type Permissions = string; /** * https://discord.com/developers/docs/reference#message-formatting-formats