UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 927 B
{"version":3,"file":"guildTextChannel.cjs","names":["resolveGuildChannelPredicate","isTextChannel","Identifiers"],"sources":["../../../../src/lib/resolvers/guildTextChannel.ts"],"sourcesContent":["import { isTextChannel } from '@sapphire/discord.js-utilities';\nimport type { Result } from '@sapphire/result';\nimport type { Guild, TextChannel } from 'discord.js';\nimport { Identifiers } from '../errors/Identifiers';\nimport { resolveGuildChannelPredicate } from '../utils/resolvers/resolveGuildChannelPredicate';\n\nexport function resolveGuildTextChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<TextChannel, Identifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildTextChannelError> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isTextChannel, Identifiers.ArgumentGuildTextChannelError);\n}\n"],"mappings":";;;;;;AAMA,SAAgB,wBACf,WACA,OACyG;AACzG,QAAOA,sFAA6B,WAAW,OAAOC,+CAAeC,2CAAY,8BAA8B"}