UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 596 B
{"version":3,"file":"name.mjs","names":[],"sources":["../../../../../../src/lib/utils/application-commands/compute-differences/name.ts"],"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"],"mappings":";AAEA,UAAiB,UAAU,EAAE,SAAS,SAAS,MAAM,UAA4F;AAChJ,KAAI,YAAY,QACf,OAAM;EACL;EACA,UAAU;EACV,UAAU;EACV"}