Interface GatewayEvent_ServerMemberJoined

interface GatewayEvent_ServerMemberJoined {
    member: {
        isOwner: boolean;
        joinedAt: string;
        nickname?: string;
        roleIds: number[];
        user: {
            avatar?: string;
            banner?: string;
            createdAt: string;
            id: string;
            name: string;
            status?: {
                content?: string;
                emoteId: number;
            };
            type?: UserType;
        };
    };
    serverId: string;
    serverMemberCount: number;
}

Properties

member: {
    isOwner: boolean;
    joinedAt: string;
    nickname?: string;
    roleIds: number[];
    user: {
        avatar?: string;
        banner?: string;
        createdAt: string;
        id: string;
        name: string;
        status?: {
            content?: string;
            emoteId: number;
        };
        type?: UserType;
    };
}

Type declaration

  • isOwner: boolean

    Is owner

    false
    
  • joinedAt: string

    Created at Format: date-time

    The ISO 8601 timestamp that the member was created at

  • Optionalnickname?: string

    Nickname

  • roleIds: number[]

    Role IDs

  • user: {
        avatar?: string;
        banner?: string;
        createdAt: string;
        id: string;
        name: string;
        status?: {
            content?: string;
            emoteId: number;
        };
        type?: UserType;
    }
    • Optionalavatar?: string

      Avatar Format: media-uri

      The avatar image associated with the user

    • Optionalbanner?: string

      Banner Format: media-uri

      The banner image associated with the user

    • createdAt: string

      Created at Format: date-time

      The ISO 8601 timestamp that the user was created at

    • id: string

      User ID Format: user-id

      The ID of the user

    • name: string

      User name

      The user's name

    • Optionalstatus?: {
          content?: string;
          emoteId: number;
      }
      • Optionalcontent?: string

        Content Format: status markdown

        The content of the user status. The supported markdown for this content only includes reactions and plaintext for now

      • emoteId: number

        Emote ID

    • Optionaltype?: UserType

      User type

      The type of user. If this property is absent, it can assumed to be of type user

serverId: string

The ID of the server

serverMemberCount: number

Count of members in this server after this join.

Note: at higher member counts (1000+), this value is only updated periodically and should not be used in situations that require absolute accuracy