class Invite
extends Base
Re-export
import { Invite } from "https://deno.land/x/harmony@v2.9.0/mod.ts";
Constructors
new
Invite(client: Client, data: InvitePayload & Partial<InviteMetadataPayload>)Properties
channel: ChannelPayload
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)
optional
guild: GuildPayloadoptional
inviter: UserPayloadMax number of times this Invite can be used. This is an Invite Metadata property (not always available)
optional
targetUser: UserPayloadMethods
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