debug malformed tweet channel db query
This commit is contained in:
1 file changed
+1
-1
@@ -404,7 +404,7 @@ module.exports = {
|
|||||||
.setDescription(`The channel <#${channelid}> has already been set for tweets.`)
|
.setDescription(`The channel <#${channelid}> has already been set for tweets.`)
|
||||||
|
|
||||||
if (channelSetting == channelid) return interaction.send({ embeds: [presetEmbed] });
|
if (channelSetting == channelid) return interaction.send({ embeds: [presetEmbed] });
|
||||||
client.dbo.collection("guilds").updateOne({"server.serverID":interaction.guild.id},{$set:{"server.actionChannel":channelid}},function(err, res) {
|
client.dbo.collection("guilds").updateOne({"server.serverID":interaction.guild.id},{$set:{"server.tweetChannel":channelid}},function(err, res) {
|
||||||
if (err) {
|
if (err) {
|
||||||
client.log(err);
|
client.log(err);
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
|
|||||||
Reference in new issue
Block a user