swc/crates/swc_bundler/tests/.cache/deno/2398ec583e381bfbf7d3d6bf9daa86f50224c05f.ts

30 lines
1.1 KiB
TypeScript
Raw Normal View History

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/members/guild_member.ts
import { User } from "../users/user.ts";
/** https://discord.com/developers/docs/resources/guild#guild-member-object */
export interface GuildMember {
/** The user this guild member represents */
user?: User;
/** This users guild nickname */
nick?: string | null;
/** Array of role object ids */
roles: string[];
/** When the user joined the guild */
joinedAt: string;
/** When the user started boosing the guild */
premiumSince?: string | null;
/** Whether the user is deafened in voice channels */
deaf: boolean;
/** Whether the user is muted in voice channels */
mute: boolean;
/** Whether the user has not yet passed the guild's Membership Screening requirements */
pending?: boolean;
}
// We use these types much since user always exists unless its a `CREATE_MESSAGE` or `MESSAGE_UPDATE` event
/** https://discord.com/developers/docs/resources/guild#guild-member-object */
export type GuildMemberWithUser = Omit<GuildMember, "user"> & { user: User };