diff --git a/packages/bot/src/transformers/channel.ts b/packages/bot/src/transformers/channel.ts index ad1261a4f..160a5b011 100644 --- a/packages/bot/src/transformers/channel.ts +++ b/packages/bot/src/transformers/channel.ts @@ -1,5 +1,5 @@ import type { BigString, DiscordChannel, DiscordForumTag } from '@discordeno/types'; -import { calculatePermissions, iconHashToBigInt } from '@discordeno/utils'; +import { iconHashToBigInt } from '@discordeno/utils'; import type { Bot } from '../bot.js'; import type { DesiredPropertiesBehavior, SetupDesiredProps, TransformersDesiredProperties } from '../desiredProperties.js'; import { ChannelToggles } from './toggles/channel.js'; @@ -52,8 +52,8 @@ export const baseChannel: Channel = { return { type, id, - allow: calculatePermissions(allow), - deny: calculatePermissions(deny), + allow, + deny, }; }) ?? [] ); diff --git a/packages/bot/src/transformers/types.ts b/packages/bot/src/transformers/types.ts index 6e0884bc4..896122909 100644 --- a/packages/bot/src/transformers/types.ts +++ b/packages/bot/src/transformers/types.ts @@ -51,7 +51,6 @@ import type { MfaLevels, OAuth2Scope, OverwriteTypes, - PermissionStrings, PremiumTiers, PremiumTypes, PresenceStatus, @@ -517,9 +516,9 @@ export interface Channel { /** Either 0 (role) or 1 (member) */ type: OverwriteTypes; /** Permission bit set */ - allow: PermissionStrings[]; + allow: bigint; /** Permission bit set */ - deny: PermissionStrings[]; + deny: bigint; }[]; } diff --git a/packages/types/src/discordeno/channel.ts b/packages/types/src/discordeno/channel.ts index 142f353bb..d6986ed98 100644 --- a/packages/types/src/discordeno/channel.ts +++ b/packages/types/src/discordeno/channel.ts @@ -18,9 +18,9 @@ export interface Overwrite { // NOTE: // - Discord says that these are always present, we keep them as optional (and allow for null) because when it is sent it can be null / not present, https://discord.com/developers/docs/resources/guild#create-guild-channel-json-params, specificly the ** /** Permission bit set */ - allow?: string | null; + allow?: BigString | null; /** Permission bit set */ - deny?: string | null; + deny?: BigString | null; } // This needs the prefix Discordeno to avoid conflicts with the @discordeno/bot types.