Skip to main content
Module

x/discord_rpc_deno/src/structures/Guild.ts

port of @xhayper/discord-rpc to deno
Go to Latest
File
// deno-lint-ignore-file no-explicit-anyimport { type Client } from "../Client.ts";import { type User } from "./User.ts";import { Base } from "./Base.ts";
export class Guild extends Base { /** * guild id */ id: string; /** * guild name (2-100 characters, excluding trailing and leading whitespace) */ name: string; icon_url: string | null; /** * guild member list * (always an empty array) * @deprecated */ members: User[] = []; // Always an empty array /** * the vanity url code for the guild */ vanity_url_code: string | null;
constructor(client: Client, props: Record<string, any>) { super(client); Object.assign(this, props);
this.id = props.id; this.name = props.name; this.icon_url = props.icon_url; this.vanity_url_code = props.vanity_url_code; }}