From 3e325d47e9a9604942de550b4af05df8970c1b67 Mon Sep 17 00:00:00 2001 From: Fleny Date: Mon, 11 Aug 2025 08:58:37 +0200 Subject: [PATCH] fix(types): Sort permissions.ts types (#4294) --- packages/types/src/discord/permissions.ts | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/types/src/discord/permissions.ts b/packages/types/src/discord/permissions.ts index 908495fba..f22f33b9f 100644 --- a/packages/types/src/discord/permissions.ts +++ b/packages/types/src/discord/permissions.ts @@ -109,18 +109,6 @@ export type PermissionStrings = keyof typeof BitwisePermissionFlags export interface DiscordRole { /** Role id */ id: string - /** If this role is showed separately in the user listing */ - hoist: boolean - /** Permission bit set */ - permissions: string - /** Whether this role is managed by an integration */ - managed: boolean - /** Whether this role is mentionable */ - mentionable: boolean - /** The tags this role has */ - tags?: DiscordRoleTags - /** the role emoji hash */ - icon?: string /** Role name */ name: string /** @@ -130,10 +118,22 @@ export interface DiscordRole { color: number /** The role's color */ colors: DiscordRoleColors - /** Position of this role (roles with the same position are sorted by id) */ - position: number + /** If this role is showed separately in the user listing */ + hoist: boolean + /** the role emoji hash */ + icon?: string /** role unicode emoji */ unicode_emoji?: string + /** Position of this role (roles with the same position are sorted by id) */ + position: number + /** Permission bit set */ + permissions: string + /** Whether this role is managed by an integration */ + managed: boolean + /** Whether this role is mentionable */ + mentionable: boolean + /** The tags this role has */ + tags?: DiscordRoleTags /** Role flags combined as a bitfield */ flags: RoleFlags }