harmony/src/types/role.ts

29 lines
654 B
TypeScript
Raw Permalink Normal View History

export interface RolePayload {
id: string
name: string
color: number
hoist: boolean
position: number
permissions: string
managed: boolean
mentionable: boolean
2020-12-28 08:14:10 +00:00
tags?: RoleTagsPayload
2020-12-25 18:29:26 +00:00
}
export interface RoleTagsPayload {
/** The id of the bot who has this role */
bot_id?: string
/** Whether this is the premium subscriber role for this guild */
premium_subscriber?: null
/** The id of the integration this role belongs to */
integration_id?: string
}
export interface RoleModifyPayload {
name?: string | null
permissions?: string | null
color?: number | null
hoist?: boolean | null
mentionable?: boolean | null
}