new Role
src/structures/role.ts:85new Role(client: ShardClient, data?: BaseStructureData, isClone?: boolean)Guild Role Structure, used in [Guild]
import { Structures } from 'detritus-client';
Structures.Role;new Role(client: ShardClient, data?: BaseStructureData, isClone?: boolean)_getFromSnake(key: string): any_setFromSnake(key: string, value: any): any[custom](): objectcan(
permissions: PermissionChecks,
__namedParameters?: { ignoreAdministrator?: boolean },
): booleanclone(): thisdelete(options?: DeleteGuildRole): Promise<any>difference(key: string, value: any): [boolean, any]differences(data?: BaseStructureData): object | nulldifferencesBetween(structure: Structure): object | nulledit(options: EditGuildRole): Promise<Role>editPosition(
position: number,
options?: EditGuildRolePositionsExtra,
): Promise<BaseCollection<string, Role>>hasDifference(key: string, value: any): booleanhasDifferences(data?: BaseStructureData): booleanhasDifferencesBetween(structure: Structure): booleanhasFlag(flag: number): booleanmerge(data?: BaseStructureData): voidmergeValue(key: string, value: any): voidpermissionsIn(
channelId: string | ChannelGuildBase,
__namedParameters?: { ignoreAdministrator?: boolean },
): biginttoJSON(): anytoString(): stringReturns a string representation of an object.