$getServerInvite
Creates and returns a server's invite URL.
Usage
This function has one param.
Param | Description | Type | Required |
---|---|---|---|
guildID | The server to create the invite in. | Snowflake | Yes |
Your bot must have the CREATE_INSTANT_INVITE
permission in the provided guild for this function to work.
Example
Last updated