1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 08:10:18 +00:00
musix-oss/funcs/setPrefix.js
2019-09-15 09:18:33 +03:00

6 lines
190 B
JavaScript

module.exports = async function (newPrefix, guildId) {
await client.db.collection('guilds').doc(guildId).set({
prefix: newPrefix,
}, { merge: true });
return 'success';
}