mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
feat(REST): enable setting default authPrefix (#7853)
This commit is contained in:
@@ -351,7 +351,7 @@ export class RequestManager extends EventEmitter {
|
||||
throw new Error('Expected token to be set for this request, but none was present');
|
||||
}
|
||||
|
||||
headers.Authorization = `${request.authPrefix ?? 'Bot'} ${this.#token}`;
|
||||
headers.Authorization = `${request.authPrefix ?? this.options.authPrefix} ${this.#token}`;
|
||||
}
|
||||
|
||||
// If a reason was set, set it's appropriate header
|
||||
|
||||
Reference in New Issue
Block a user