Optional Configuration
Invite Endpoint
Specify /invite
endpoint behavior.
new DBD.Dashboard({
invite: {
clientId: String,
scopes: String[],
permissions: String,
redirectUri: String,
otherParams: String
},
});
Example Usage
new DBD.Dashboard({
invite: {
clientId: "CLIENT_ID",
scopes: ["bot", "applications.commands"],
permissions: "8",
redirectUri: "http://localhost:3000",
otherParams: "test",
},
});
Props
clientId
string
requiredThe client ID of the bot.
scopes
string[]
requiredThe scopes of the bot.
permissions
string
requiredThe permissions int of the bot.
redirectUri
string
requiredThe redirect URI of the bot.
otherParams
string
requiredThe other params of the bot.
Was this page helpful?