Last bug fix hopefully
This commit is contained in:
@@ -37,12 +37,14 @@ module.exports = {
|
||||
|
||||
if (!settingsData) {
|
||||
|
||||
await settings.create({
|
||||
_id: mongoose.Types.ObjectId(),
|
||||
const newSetting = new settings({
|
||||
_id: new mongoose.Types.ObjectId(),
|
||||
name: setting,
|
||||
value: value
|
||||
});
|
||||
|
||||
await newSetting.save();
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: "Successfully created `" + setting + "` with value `" + value + "`.",
|
||||
|
||||
Reference in New Issue
Block a user