UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 944 B
{"version":3,"sources":["../../../../src/lib/resolvers/guildNewsChannel.ts"],"names":[],"mappings":";;;;;AAMO,SAAS,uBAAA,CACf,WACA,KACyG,EAAA;AACzG,EAAA,OAAO,4BAA6B,CAAA,SAAA,EAAW,KAAO,EAAA,aAAA,EAAe,YAAY,6BAA6B,CAAA;AAC/G;AALgB,MAAA,CAAA,uBAAA,EAAA,yBAAA,CAAA","file":"guildNewsChannel.mjs","sourcesContent":["import { isNewsChannel } from '@sapphire/discord.js-utilities';\nimport type { Result } from '@sapphire/result';\nimport type { Guild, NewsChannel } from 'discord.js';\nimport { Identifiers } from '../errors/Identifiers';\nimport { resolveGuildChannelPredicate } from '../utils/resolvers/resolveGuildChannelPredicate';\n\nexport function resolveGuildNewsChannel(\n\tparameter: string,\n\tguild: Guild\n): Result<NewsChannel, Identifiers.ArgumentGuildChannelError | Identifiers.ArgumentGuildNewsChannelError> {\n\treturn resolveGuildChannelPredicate(parameter, guild, isNewsChannel, Identifiers.ArgumentGuildNewsChannelError);\n}\n"]}