@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
1 lines • 963 B
Source Map (JSON)
{"version":3,"sources":["../../../../src/lib/resolvers/guildThreadChannel.ts"],"names":[],"mappings":";;;;;AAMO,SAAS,yBAAA,CACf,WACA,KAC6G,EAAA;AAC7G,EAAA,OAAO,4BAA6B,CAAA,SAAA,EAAW,KAAO,EAAA,eAAA,EAAiB,YAAY,+BAA+B,CAAA;AACnH;AALgB,MAAA,CAAA,yBAAA,EAAA,2BAAA,CAAA","file":"guildThreadChannel.mjs","sourcesContent":["import { isThreadChannel } from '@sapphire/discord.js-utilities';\nimport type { Result } from '@sapphire/result';\nimport type { Guild, ThreadChannel } from 'discord.js';\nimport { Identifiers } from '../errors/Identifiers';\nimport { resolveGuildChannelPredicate } from '../utils/resolvers/resolveGuildChannelPredicate';\n\nexport function resolveGuildThreadChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<ThreadChannel, Identifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildThreadChannelError> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isThreadChannel, Identifiers.ArgumentGuildThreadChannelError);\n}\n"]}