Update utils.ts

This commit is contained in:
Saad A. Bazaz 2024-08-14 16:59:42 +05:00 committed by GitHub
parent bae0116d78
commit 0eb3a4c5d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,6 +111,10 @@ export function prepareOptions(options: IDataObject, guildId?: string) {
};
}
if (options.raw_json) {
return {...options, ...(JSON.parse(options.raw_json))}
}
return options;
}