You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

InvitesAPI

export declare class InvitesAPI
export declare class InvitesAPI

No summary provided.

constructor(rest)
Constructs a new instance of the InvitesAPI class
NameTypeOptionalDescription
restRESTNoNone
delete(code, options?):Promise<void>
NameTypeOptionalDescription
codestringNoThe invite code
optionsPick<RequestData, 'reason' | 'signal'>YesThe options for deleting the invite
get(code, query?, options?):Promise<APIInvite>
NameTypeOptionalDescription
codestringNoThe invite code
queryRESTGetAPIInviteQueryYesThe options for fetching the invite
optionsPick<RequestData, 'signal'>YesThe options for fetching the invite