👥Members

members.join

This webhook is fired every time someone joins your server

{
   guild: {
      id: string;
      name: string;
      icon?: string;
    };
    member: {
      id: string;
      username: string;
      discriminator: string;
      avatar: string;
      bot: boolean;
      joinedAt: number;
      createdAt: number;
    };
    inviter: {
      type: "user" | "vanity" | "unknown" | "oauth2";
      user?: { // only if type = user
        id: string;
        username: string;
        discriminator: string;
        avatar?: string;
        bot?: boolean;
      };
      invites?: { // only if type = user
        total: number,
        leaves: number,
        fake: number,
        bonus: number,
        joins: number,
        rank?: number // might not be shown, do no rely on it
      },
      code?: string  // only if vanity or user
    },
    fakeData: {
      isFake: boolean, // if the join has been counted as fake
      code: number // bitfield telling why the join has been counted as fake
    }
}


members.leave

This webhook is fired every time someone leaves your server

{
   guild: {
      id: string;
      name: string;
      icon?: string;
    };
    member: {
      id: string;
      username: string;
      discriminator: string;
      avatar: string;
      bot: boolean;
      joinedAt: number;
      createdAt: number;
    };
    inviter: {
      type: "user" | "vanity" | "unknown" | "oauth2";
      user?: { // only if type = user
        id: string;
        username: string;
        discriminator: string;
        avatar?: string;
        bot?: boolean;
      };
      invites?: { // only if type = user
        total: number,
        leaves: number,
        fake: number,
        bonus: number,
        joins: number,
        rank?: number // might not be shown, do no rely on it
      },
      code?: string  // only if vanity or user
    },
}


members.fakeUpdate

This webhook is fired every time someone's join become non fake (i.e when there is a role requirement fake parameter)

{
   guild: {
      id: string;
      name: string;
      icon?: string;
    };
    member: {
      id: string;
      username: string;
      discriminator: string;
      avatar: string;
      bot: boolean;
      joinedAt: number;
      createdAt: number;
    };
    inviter: {
      type: "user" | "vanity" | "unknown" | "oauth2";
      user?: { // only if type = user
        id: string;
        username: string;
        discriminator: string;
        avatar?: string;
        bot?: boolean;
      };
       invites?: {
        total: number,
        leaves: number,
        fake: number,
        bonus: number,
        joins: number,
        rank?: number // might not be shown, do no rely on it
      },
      code?: string  // only if vanity or user
    }, 
    fakeData: {
      before: {
        isFake: boolean,
        code: number
      },
      after: {
        isFake: boolean,
        code: number
      }
    }
}

Last updated