UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 1.03 kB
{"version":3,"sources":["../../../../src/lib/resolvers/guildThreadChannel.ts"],"names":["resolveGuildChannelPredicate","isThreadChannel","Identifiers"],"mappings":";;;;;;;;AAMO,SAAS,yBAAA,CACf,WACA,KAC6G,EAAA;AAC7G,EAAA,OAAOA,6DAA6B,CAAA,SAAA,EAAW,KAAO,EAAAC,mCAAA,EAAiBC,4BAAY,+BAA+B,CAAA;AACnH;AALgB,MAAA,CAAA,yBAAA,EAAA,2BAAA,CAAA","file":"guildThreadChannel.cjs","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"]}