UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 727 B
{"version":3,"sources":["../../../../../../src/lib/utils/application-commands/compute-differences/name.ts"],"names":[],"mappings":";;;;;;AAEO,UAAU,UAAU,EAAE,OAAA,EAAS,OAAS,EAAA,GAAA,GAAM,QAA4F,EAAA;AAChJ,EAAA,IAAI,YAAY,OAAS,EAAA;AACxB,IAAM,MAAA;AAAA,MACL,GAAA;AAAA,MACA,QAAU,EAAA,OAAA;AAAA,MACV,QAAU,EAAA;AAAA,KACX;AAAA;AAEF;AARiB,MAAA,CAAA,SAAA,EAAA,WAAA,CAAA","file":"name.cjs","sourcesContent":["import type { CommandDifference } from './_shared';\n\nexport function* checkName({ oldName, newName, key = 'name' }: { oldName: string; newName: string; key?: string }): Generator<CommandDifference> {\n\tif (oldName !== newName) {\n\t\tyield {\n\t\t\tkey,\n\t\t\toriginal: oldName,\n\t\t\texpected: newName\n\t\t};\n\t}\n}\n"]}