Skip to content

Commit

Permalink
fix: export RESTGetAPIVoiceRegionsResult with the correct name (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu authored Oct 29, 2022
1 parent c15106b commit 69aa717
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
7 changes: 6 additions & 1 deletion deno/rest/v10/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ import type { APIVoiceRegion } from '../../payloads/v10/mod.ts';
/**
* https://discord.com/developers/docs/resources/voice#list-voice-regions
*/
export type GetAPIVoiceRegionsResult = APIVoiceRegion[];
export type RESTGetAPIVoiceRegionsResult = APIVoiceRegion[];

/**
* @deprecated This was exported with the wrong name, use `RESTGetAPIVoiceRegionsResult` instead
*/
export type GetAPIVoiceRegionsResult = RESTGetAPIVoiceRegionsResult;
7 changes: 6 additions & 1 deletion deno/rest/v9/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ import type { APIVoiceRegion } from '../../payloads/v9/mod.ts';
/**
* https://discord.com/developers/docs/resources/voice#list-voice-regions
*/
export type GetAPIVoiceRegionsResult = APIVoiceRegion[];
export type RESTGetAPIVoiceRegionsResult = APIVoiceRegion[];

/**
* @deprecated This was exported with the wrong name, use `RESTGetAPIVoiceRegionsResult` instead
*/
export type GetAPIVoiceRegionsResult = RESTGetAPIVoiceRegionsResult;
7 changes: 6 additions & 1 deletion rest/v10/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ import type { APIVoiceRegion } from '../../payloads/v10/index';
/**
* https://discord.com/developers/docs/resources/voice#list-voice-regions
*/
export type GetAPIVoiceRegionsResult = APIVoiceRegion[];
export type RESTGetAPIVoiceRegionsResult = APIVoiceRegion[];

/**
* @deprecated This was exported with the wrong name, use `RESTGetAPIVoiceRegionsResult` instead
*/
export type GetAPIVoiceRegionsResult = RESTGetAPIVoiceRegionsResult;
7 changes: 6 additions & 1 deletion rest/v9/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ import type { APIVoiceRegion } from '../../payloads/v9/index';
/**
* https://discord.com/developers/docs/resources/voice#list-voice-regions
*/
export type GetAPIVoiceRegionsResult = APIVoiceRegion[];
export type RESTGetAPIVoiceRegionsResult = APIVoiceRegion[];

/**
* @deprecated This was exported with the wrong name, use `RESTGetAPIVoiceRegionsResult` instead
*/
export type GetAPIVoiceRegionsResult = RESTGetAPIVoiceRegionsResult;

1 comment on commit 69aa717

@vercel
Copy link

@vercel vercel bot commented on 69aa717 Oct 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.