UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 954 B
{"version":3,"sources":["../../../../src/lib/resolvers/guildVoiceChannel.ts"],"names":[],"mappings":";;;;;AAMO,SAAS,wBAAA,CACf,WACA,KAC2G,EAAA;AAC3G,EAAA,OAAO,4BAA6B,CAAA,SAAA,EAAW,KAAO,EAAA,cAAA,EAAgB,YAAY,8BAA8B,CAAA;AACjH;AALgB,MAAA,CAAA,wBAAA,EAAA,0BAAA,CAAA","file":"guildVoiceChannel.mjs","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"]}