UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 948 B
{"version":3,"file":"guildThreadChannel.cjs","names":["resolveGuildChannelPredicate","isThreadChannel","Identifiers"],"sources":["../../../../src/lib/resolvers/guildThreadChannel.ts"],"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"],"mappings":";;;;;;AAMA,SAAgB,0BACf,WACA,OAC6G;AAC7G,QAAOA,sFAA6B,WAAW,OAAOC,iDAAiBC,2CAAY,gCAAgC"}