// Copyright Abridged, Inc. 2023,2024. All Rights Reserved. // Node module: @collabland/sdk // This file is licensed under the MIT License. // License text available at https://opensource.org/license/mit/ import {model, property} from '@loopback/repository'; import {ApiRoleTags} from './api-role-tags.model.js'; /** * The model class is generated from OpenAPI schema - GuildRolesResponse * GuildRolesResponse */ @model({name: 'GuildRolesResponse'}) export class GuildRolesResponse { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) id?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) name?: string; /** * */ @property({ jsonSchema: { type: 'number', }, }) color?: number; /** * */ @property({ jsonSchema: { type: 'boolean', }, }) hoist?: boolean; /** * */ @property({ jsonSchema: { type: 'string', }, }) icon?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) unicode_emoji?: string; /** * */ @property({ jsonSchema: { type: 'number', }, }) position?: number; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) permissions?: string[]; /** * */ @property({ jsonSchema: { type: 'boolean', }, }) managed?: boolean; /** * */ @property({ jsonSchema: { type: 'boolean', }, }) mentionable?: boolean; /** * */ @property({ jsonSchema: { $ref: '#/components/schemas/APIRoleTags', }, }) tags?: ApiRoleTags; } export interface GuildRolesResponseRelations { // describe navigational properties here } export type GuildRolesResponseWithRelations = GuildRolesResponse & GuildRolesResponseRelations;