@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
1 lines • 1.02 kB
Source Map (JSON)
{"version":3,"sources":["../../../../src/lib/resolvers/guildVoiceChannel.ts"],"names":["resolveGuildChannelPredicate","isVoiceChannel","Identifiers"],"mappings":";;;;;;;;AAMO,SAAS,wBAAA,CACf,WACA,KAC2G,EAAA;AAC3G,EAAA,OAAOA,6DAA6B,CAAA,SAAA,EAAW,KAAO,EAAAC,kCAAA,EAAgBC,4BAAY,8BAA8B,CAAA;AACjH;AALgB,MAAA,CAAA,wBAAA,EAAA,0BAAA,CAAA","file":"guildVoiceChannel.cjs","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"]}