UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 983 B
{"version":3,"file":"guildPrivateThreadChannel.mjs","names":[],"sources":["../../../../src/lib/resolvers/guildPrivateThreadChannel.ts"],"sourcesContent":["import { isPrivateThreadChannel } 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 resolveGuildPrivateThreadChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<\n\tThreadChannel,\n\tIdentifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildThreadChannelError | Identifiers.ArgumentGuildPrivateThreadChannelError\n> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isPrivateThreadChannel, Identifiers.ArgumentGuildPrivateThreadChannelError);\n}\n"],"mappings":";;;;;AAMA,SAAgB,iCACf,WACA,OAIC;AACD,QAAO,6BAA6B,WAAW,OAAO,wBAAwB,YAAY,uCAAuC"}