How to declare the BulkOverwrite property in JavaScript?

I've been having trouble trying to find out how to declare the BulkOverwrite option for Sapphire, searched around but couldn't find anything for my use case.
2 Replies
Favna
Favna2y ago
ESM
import { ApplicationCommandRegistries, RegisterBehavior } from '@sapphire/framework';
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
import { ApplicationCommandRegistries, RegisterBehavior } from '@sapphire/framework';
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
CJS
const { ApplicationCommandRegistries, RegisterBehavior } = require('@sapphire/framework');
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
const { ApplicationCommandRegistries, RegisterBehavior } = require('@sapphire/framework');
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
aiden
aidenOP2y ago
thank you!!
Want results from more Discord servers?
Add your server