mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 10:50:09 +00:00
* fix(rest)!: Remove calculateBits from changeToDiscordFormat The rest manager currently has to assume that request bodies that have "permissions", "allow", "deny", "defaultMemberPermissions" fields are always meant as a permissions. If these are not, for user error or future discord changes, this will break. Also Discord expects these as strings, and discordeno does not abstract too much from the discord api, so it doesn't really makes sense for us to accept PermissionStrings[], the user should call calculateBits themselves, there is an argument to be made about accepting bigints since these are bitfields but that's another discussion. * Channel.permissionOverwrites use PermissionStrings For the transformed type we can keep the fact that it uses PermissionStrings * Fix e2e test * remove comment