@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
1 lines • 982 B
Source Map (JSON)
{"version":3,"sources":["../../../../src/lib/resolvers/guildCategoryChannel.ts"],"names":[],"mappings":";;;;;AAMO,SAAS,2BAAA,CACf,WACA,KACiH,EAAA;AACjH,EAAA,OAAO,4BAA6B,CAAA,SAAA,EAAW,KAAO,EAAA,iBAAA,EAAmB,YAAY,iCAAiC,CAAA;AACvH;AALgB,MAAA,CAAA,2BAAA,EAAA,6BAAA,CAAA","file":"guildCategoryChannel.mjs","sourcesContent":["import { isCategoryChannel } from '@sapphire/discord.js-utilities';\nimport type { Result } from '@sapphire/result';\nimport type { CategoryChannel, Guild } from 'discord.js';\nimport { Identifiers } from '../errors/Identifiers';\nimport { resolveGuildChannelPredicate } from '../utils/resolvers/resolveGuildChannelPredicate';\n\nexport function resolveGuildCategoryChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<CategoryChannel, Identifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildCategoryChannelError> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isCategoryChannel, Identifiers.ArgumentGuildCategoryChannelError);\n}\n"]}