mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
feat: add auth option in api methods (#10717)
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: Denis-Adrian Cristea <didinele.dev@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -12,8 +12,9 @@ export class SoundboardSoundsAPI {
|
||||
* @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
|
||||
* @param options - The options for fetching the soundboard default sounds.
|
||||
*/
|
||||
public async getSoundboardDefaultSounds({ signal }: Pick<RequestData, 'signal'> = {}) {
|
||||
public async getSoundboardDefaultSounds({ auth, signal }: Pick<RequestData, 'auth' | 'signal'> = {}) {
|
||||
return this.rest.get(Routes.soundboardDefaultSounds(), {
|
||||
auth,
|
||||
signal,
|
||||
}) as Promise<RESTGetAPISoundboardDefaultSoundsResult>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user