(target, propertyName, descriptor)
| 338 | } |
| 339 | |
| 340 | export function withSafeExecuteDecorator(target, propertyName, descriptor) { |
| 341 | const originalMethod = descriptor.value; |
| 342 | |
| 343 | descriptor.value = async function(interaction, config, client) { |
| 344 | await InteractionHelper.safeExecute( |
| 345 | interaction, |
| 346 | () => originalMethod.call(this, interaction, config, client), |
| 347 | null, |
| 348 | { autoDefer: !interaction._isPrefixCommand }, |
| 349 | ); |
| 350 | }; |
| 351 | |
| 352 | return descriptor; |
| 353 | } |
nothing calls this directly
no test coverage detected