{"version":3,"file":"Role.mjs","sourceRoot":"","sources":["../../src/payloads/Role.mts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD,aAAa;AACb,MAAM,OAAO,IAAI;IA0Bb,YAAY,IAAa;QAxBzB,cAAc;QACd;;;;;WAAW;QACX,gBAAgB;QAChB;;;;;WAAa;QACb,uDAAuD;QACvD;;;;;WAAc;QACd,iDAAiD;QACjD;;;;;WAAe;QACf,yBAAyB;QACzB;;;;;WAAqB;QACrB,qDAAqD;QACrD;;;;;WAAiB;QACjB,uCAAuC;QACvC;;;;;WAAqB;QACrB,yBAAyB;QACzB;;;;;WAAyB;QACzB,4BAA4B;QAC5B;;;;;WAAiB;QACjB,6BAA6B;QAC7B;;;;;WAAmB;QACnB,iDAAiD;QACjD;;;;;WAA6B;QAIzB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACrD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC;IAE3C,CAAC;CACJ;AAED,eAAe,IAAI,CAAC","sourcesContent":["import type { APIRole, APIRoleTags } from \"discord-api-types/v10\";\nimport Permissions from \"../basic/Permissions.mjs\";\n\n/** A role */\nexport class Role {\n\n    /** Role id */\n    id: string;\n    /** Role name */\n    name: string;\n    /** Integer representation of hexadecimal color code */\n    color: number;\n    /** If this role is pinned in the user listing */\n    hoist: boolean;\n    /** The role icon hash */\n    icon?: string | null;\n    /** Whether this role is managed by an integration */\n    managed: boolean;\n    /** Whether this role is mentionable */\n    mentionable: boolean;\n    /** Permission bit set */\n    permissions: Permissions;\n    /** Position of this role */\n    position: number;\n    /** The tags this role has */\n    tags?: APIRoleTags;\n    /** The role unicode emoji as a standard emoji */\n    unicodeEmoji?: string | null;\n\n\n    constructor(role: APIRole) {\n        this.id = role.id;\n        this.name = role.name;\n        this.color = role.color;\n        this.hoist = role.hoist;\n        this.icon = role.icon;\n        this.managed = role.managed;\n        this.mentionable = role.mentionable;\n        this.permissions = new Permissions(role.permissions);\n        this.position = role.position;\n        this.tags = role.tags;\n        this.unicodeEmoji = role.unicode_emoji;\n\n    }\n}\n\nexport default Role;"]}