mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
feat(REST): enable setting default authPrefix (#7853)
This commit is contained in:
@@ -29,6 +29,12 @@ export interface RESTOptions {
|
||||
* @default 'https://discord.com/api'
|
||||
*/
|
||||
api: string;
|
||||
/**
|
||||
* The authorization prefix to use for requests, useful if you want to use
|
||||
* bearer tokens
|
||||
* @default 'Bot'
|
||||
*/
|
||||
authPrefix: 'Bot' | 'Bearer';
|
||||
/**
|
||||
* The cdn path
|
||||
* @default 'https://cdn.discordapp.com'
|
||||
|
||||
Reference in New Issue
Block a user