mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 07:20:08 +00:00
16 lines
471 B
TypeScript
16 lines
471 B
TypeScript
import { Bot } from "../bot.ts";
|
|
import { DiscordVoiceRegion } from "../types/discord.ts";
|
|
import { Optionalize } from "../types/shared.ts";
|
|
|
|
export function transformVoiceRegion(bot: Bot, payload: DiscordVoiceRegion) {
|
|
return {
|
|
id: payload.id,
|
|
name: payload.name,
|
|
optimal: payload.optimal,
|
|
deprecated: payload.deprecated,
|
|
custom: payload.custom,
|
|
};
|
|
}
|
|
|
|
export interface VoiceRegions extends Optionalize<ReturnType<typeof transformVoiceRegion>> {}
|