UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 1.13 kB
{"version":3,"sources":["../../../../src/lib/resolvers/guildPublicThreadChannel.ts"],"names":["resolveGuildChannelPredicate","isPublicThreadChannel","Identifiers"],"mappings":";;;;;;;;AAMO,SAAS,+BAAA,CACf,WACA,KAIC,EAAA;AACD,EAAA,OAAOA,6DAA6B,CAAA,SAAA,EAAW,KAAO,EAAAC,yCAAA,EAAuBC,4BAAY,qCAAqC,CAAA;AAC/H;AARgB,MAAA,CAAA,+BAAA,EAAA,iCAAA,CAAA","file":"guildPublicThreadChannel.cjs","sourcesContent":["import { isPublicThreadChannel } 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 resolveGuildPublicThreadChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<\n\tThreadChannel,\n\tIdentifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildThreadChannelError | Identifiers.ArgumentGuildPublicThreadChannelError\n> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isPublicThreadChannel, Identifiers.ArgumentGuildPublicThreadChannelError);\n}\n"]}