diff --git a/commands/general/channel/disable.js b/commands/general/channel/disable.js index a68a5dbd..a4373217 100644 --- a/commands/general/channel/disable.js +++ b/commands/general/channel/disable.js @@ -34,7 +34,7 @@ class ChannelDisableCommand extends Command { if (!(channel instanceof GuildChannel) || channel.guildID !== this.guild.id) return this.getString("commands.responses.channel.notInServer"); - await this.database.disableChannel(channel); + await this.database.disableChannel(channel.id, channel.guildID); this.success = true; return this.getString("commands.responses.channel.disabled", { params: { diff --git a/commands/general/channel/enable.js b/commands/general/channel/enable.js index 26d4b062..4d691f90 100644 --- a/commands/general/channel/enable.js +++ b/commands/general/channel/enable.js @@ -33,7 +33,7 @@ class ChannelEnableCommand extends Command { if (!(channel instanceof GuildChannel) || channel.guildID !== this.guild.id) return this.getString("commands.responses.channel.notInServer"); - await this.database.enableChannel(channel); + await this.database.enableChannel(channel.id, channel.guildID); this.success = true; return this.getString("commands.responses.channel.reEnabled"); } diff --git a/commands/general/prefix.js b/commands/general/prefix.js index f435f1ce..17614140 100644 --- a/commands/general/prefix.js +++ b/commands/general/prefix.js @@ -19,7 +19,7 @@ class PrefixCommand extends Command { this.success = false; return this.getString("commands.responses.prefix.adminOnly"); } - await this.database.setPrefix(this.args[0], this.guild); + await this.database.setPrefix(this.args[0], this.guild.id); return this.getString("commands.responses.prefix.changed", { params: { prefix: this.args[0], diff --git a/commands/tags/tags/add.js b/commands/tags/tags/add.js index f887242c..de346f3a 100644 --- a/commands/tags/tags/add.js +++ b/commands/tags/tags/add.js @@ -29,7 +29,7 @@ class TagsAddCommand extends Command { : this.args.slice(1).join(" "), author: this.author.id, }, - this.guild, + this.guild.id, ); this.success = true; return this.getString("commands.responses.tags.added", { diff --git a/commands/tags/tags/delete.js b/commands/tags/tags/delete.js index 49b8e2b0..9ceeef30 100644 --- a/commands/tags/tags/delete.js +++ b/commands/tags/tags/delete.js @@ -16,7 +16,7 @@ class TagsDeleteCommand extends Command { !owners?.includes(this.author.id) ) return this.getString("commands.responses.tags.notOwner"); - await this.database.removeTag(tagName, this.guild); + await this.database.removeTag(tagName, this.guild.id); this.success = true; return this.getString("commands.responses.tags.deleted", { params: { diff --git a/commands/tags/tags/edit.js b/commands/tags/tags/edit.js index c607634e..6c500b5e 100644 --- a/commands/tags/tags/edit.js +++ b/commands/tags/tags/edit.js @@ -23,7 +23,7 @@ class TagsEditCommand extends Command { : this.args.slice(2).join(" "), author: this.author.id, }, - this.guild, + this.guild.id, ); this.success = true; return this.getString("commands.responses.tags.edited", {