Suggestion: Discord permission bitfield type should be either `string` or `bigint` consistently instead of `number`
Currently discord rest types such as UpdateGuildRoleRequest and ApplicationCommandUpdateRequest use number type for permissions while some others (like ApplicationCommandResponse) use string. AFAIK discord API itself uses strings for permissions and dfx Perms helper uses bigint, so number is really inconvenient here. I suggest using either string or bigint consistently instead.
dfx doesn't modify the rest responses to keep the maintenance burden low. I think most of the permission helpers accept string or bigint.
dfx doesn't modify the rest responses to keep the maintenance burden low
Then I suggest adding permission helpers for number type.
Example:
Ix.guild({
// 'bigint' is not assignable to type 'number' => unsafe manual cast required
default_member_permissions: Perms.fromList(["Administrator"])
})
In that case you would just do Number(Perms.fromList(["Administrator"])), I don't think that is too bad.