mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
27 lines
766 B
TypeScript
27 lines
766 B
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/permissions/role.ts
|
|
|
|
|
|
import { RoleTags } from "./role_tags.ts";
|
|
|
|
/** https://discord.com/developers/docs/topics/permissions#role-object-role-structure */
|
|
export interface Role {
|
|
/** Role id */
|
|
id: string;
|
|
/** Role name */
|
|
name: string;
|
|
/** Integer representation of hexadecimal color code */
|
|
color: number;
|
|
/** If this role is showed seperately in the user listing */
|
|
hoist: boolean;
|
|
/** Position of this role */
|
|
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?: RoleTags;
|
|
}
|