mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
30 lines
1.1 KiB
TypeScript
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 };
|