GuildAutoRole: {
    appliesTo: AutoRoleAppliesTo;
    createdAt: string;
    dbId: string;
    delayMinutes: number | null;
    durationMinutes: number | null;
    enabled: boolean;
    inviteCodes: string[];
    maxAccountAgeDays: number | null;
    minAccountAgeDays: number | null;
    name: string;
    removeRoleIds: string[];
    requireScreening: boolean;
    roleIds: string[];
}

Type declaration

  • appliesTo: AutoRoleAppliesTo
  • createdAt: string
  • dbId: string
  • delayMinutes: number | null

    Premium. Minutes after joining (or passing screening) before the roles are given.

  • durationMinutes: number | null

    Premium. Minutes after being given that the roles are removed again.

  • enabled: boolean
  • inviteCodes: string[]

    Premium. Empty = any invite. Real codes, 'vanity', 'unknown'.

  • maxAccountAgeDays: number | null

    ...and at most this many. Null = no maximum.

  • minAccountAgeDays: number | null

    The member's Discord account must be at least this many days old. Null = no minimum.

  • name: string
  • removeRoleIds: string[]

    Removed when the rule matches. 0-5. Never overlaps roleIds.

  • requireScreening: boolean

    Wait until the member passes membership screening. A server without screening grants on join.

  • roleIds: string[]

    Given when the rule matches. 1-5.