UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 872 B
{"version":3,"file":"guildVoiceChannel.mjs","names":[],"sources":["../../../../src/lib/resolvers/guildVoiceChannel.ts"],"sourcesContent":["import { isVoiceChannel } from '@sapphire/discord.js-utilities';\nimport type { Result } from '@sapphire/result';\nimport type { Guild, VoiceChannel } from 'discord.js';\nimport { Identifiers } from '../errors/Identifiers';\nimport { resolveGuildChannelPredicate } from '../utils/resolvers/resolveGuildChannelPredicate';\n\nexport function resolveGuildVoiceChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<VoiceChannel, Identifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildVoiceChannelError> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isVoiceChannel, Identifiers.ArgumentGuildVoiceChannelError);\n}\n"],"mappings":";;;;;AAMA,SAAgB,yBACf,WACA,OAC2G;AAC3G,QAAO,6BAA6B,WAAW,OAAO,gBAAgB,YAAY,+BAA+B"}