Search...

InvitesAPI

declare class InvitesAPI 
declare class InvitesAPI 

No summary provided.

constructor(rest)

Constructs a new instance of the InvitesAPI class
NameTypeOptionalDescription
restRESTNoNone

delete(code, reason?)

:

Promise<void>

Deletes an invite
NameTypeOptionalDescription
codestringNoThe invite code
reasonstringYesThe reason for deleting the invite

get(code, options?)

:

Promise<discord_api_types_v10.APIInvite>

Fetches an invite
NameTypeOptionalDescription
codestringNoThe invite code
optionsRESTGetAPIInviteQueryYesNone