Interface InviteCreatePacket

interface InviteCreatePacket {
    d: {
        channel_id: string;
        code: string;
        created_at: string;
        guild_id?: string;
        inviter?: RawUser;
        max_age: number;
        max_uses: number;
        target_application?: RawPartialApplication;
        target_type?: InviteTargetTypes;
        target_user?: RawUser;
        temporary: boolean;
        uses: number;
    };
    op: DISPATCH;
    s: number;
    t: "INVITE_CREATE";
}

Hierarchy (view full)

Properties

d op s t

Properties

d: {
    channel_id: string;
    code: string;
    created_at: string;
    guild_id?: string;
    inviter?: RawUser;
    max_age: number;
    max_uses: number;
    target_application?: RawPartialApplication;
    target_type?: InviteTargetTypes;
    target_user?: RawUser;
    temporary: boolean;
    uses: number;
}

Type declaration

  • channel_id: string
  • code: string
  • created_at: string
  • Optional guild_id?: string
  • Optional inviter?: RawUser
  • max_age: number
  • max_uses: number
  • Optional target_application?: RawPartialApplication
  • Optional target_type?: InviteTargetTypes
  • Optional target_user?: RawUser
  • temporary: boolean
  • uses: number
s: number
t: "INVITE_CREATE"