skip to Main Content

How do you push a string into all users documents in a mongodb collection?

This is my subcommand code: .addSubcommand(subcommand => subcommand .setName('announcement') .setDescription('Announce something to every user. ') .addStringOption(option => option .setName('announcement1') .setDescription('Announcement content') .setRequired(true))), This is my code so far for the command: if (interaction.options.getSubcommand() === 'announcement') { const ann = interaction.options.getString('announcement1')…

VIEW QUESTION
Back To Top
Search