swc/bundler/tests/.cache/deno/2398ec583e381bfbf7d3d6bf9daa86f50224c05f.ts
강동윤 d60c3242af
fix(swc): Fix bugs (#1739)
swc_bundler:
 - Fix cycle detection for complex circular imports. (denoland/deno#10752)

swc_ecma_transforms_typescript:
 - Allow using large values for an enum variant.
2021-05-25 14:30:17 +09:00

30 lines
1.1 KiB
TypeScript

// 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 };