class Role
extends SnowflakeBase
import { Role } from "https://deno.land/x/harmony@v2.6.0/src/structures/role.ts";
Represents a Guild Role
Constructors
Properties
Methods
edit(options: RoleModifyPayload): Promise<Role>
Edit the Role
readFromData(data: RolePayload): void
removeFrom(member: Member | User | string): Promise<boolean>
Remove the Role from a Member
roleIcon(format?: ImageFormats, size?: ImageSize): string | undefined
Get the icon for the role. If set, is either a URL to an icon, or a Unicode emoji.