import { Invite } from "https://deno.land/x/harmony@v2.7.0/mod.ts";
Properties
readonly
createdAt: Date | undefinedTimestamp (Date) when Invite was created. This is an Invite Metadata property (not always available)
Timestamp (string) when Invite was created. This is an Invite Metadata property (not always available)
Max number of times this Invite can be used. This is an Invite Metadata property (not always available)
Methods
delete(): Promise<Invite>
Delete an invite. Requires the MANAGE_CHANNELS permission on the channel this invite belongs to, or MANAGE_GUILD to remove any invite across the guild. Returns an invite object on success. Fires a Invite Delete Gateway event.
readFromData(data: InvitePayload & Partial<InviteMetadataPayload>): void
toString(): string