UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

1 lines 712 B
{"version":3,"file":"description.cjs","names":[],"sources":["../../../../../../src/lib/utils/application-commands/compute-differences/description.ts"],"sourcesContent":["import type { CommandDifference } from './_shared';\n\nexport function* checkDescription({\n\toldDescription,\n\tnewDescription,\n\tkey = 'description'\n}: {\n\toldDescription: string;\n\tnewDescription: string;\n\tkey?: string;\n}): Generator<CommandDifference> {\n\tif (oldDescription !== newDescription) {\n\t\tyield {\n\t\t\tkey,\n\t\t\toriginal: oldDescription,\n\t\t\texpected: newDescription\n\t\t};\n\t}\n}\n"],"mappings":";;;AAEA,UAAiB,iBAAiB,EACjC,gBACA,gBACA,MAAM,iBAK0B;AAChC,KAAI,mBAAmB,eACtB,OAAM;EACL;EACA,UAAU;EACV,UAAU;EACV"}