@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
1 lines • 1.12 kB
Source Map (JSON)
{"version":3,"sources":["../../../../src/lib/resolvers/guildNewsThreadChannel.ts"],"names":["resolveGuildChannelPredicate","isNewsThreadChannel","Identifiers"],"mappings":";;;;;;;;AAMO,SAAS,6BAAA,CACf,WACA,KAIC,EAAA;AACD,EAAA,OAAOA,6DAA6B,CAAA,SAAA,EAAW,KAAO,EAAAC,uCAAA,EAAqBC,4BAAY,mCAAmC,CAAA;AAC3H;AARgB,MAAA,CAAA,6BAAA,EAAA,+BAAA,CAAA","file":"guildNewsThreadChannel.cjs","sourcesContent":["import { isNewsThreadChannel } 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 resolveGuildNewsThreadChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<\n\tThreadChannel,\n\tIdentifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildThreadChannelError | Identifiers.ArgumentGuildNewsThreadChannelError\n> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isNewsThreadChannel, Identifiers.ArgumentGuildNewsThreadChannelError);\n}\n"]}