Can't figure out what's causing problems : <p>I recently asked a question on how I'd set up a cross server bot with per server commands. Someone said I'd be able to using quick.db, then put this code in his answer:</p>

<pre><code>client.on("message", message =&gt; {
    const args = message.content.slice(prefix.length).trim().split(/ +/g);
    const command = args.shift().toLowerCase();
    if(command == "setautorole"){
        let roleName = args.slice(0).join(" ");
        let role = message.guild.roles.find(role =&gt; role.name == roleName).catch(message.reply("Couldn't find that role"),
        db.set(`autorole_${message.guild.id}`, role.id)
    }
    if(command == "unsetautorole"){
        db.delete(`autorole_${message.guild.id})
    }
    if(command == "setwelcomechannel"){
        let channelName = args.slice(0).join(" ");
        let channel = message.guild.channels.find(channel =&gt; channel.name == channelName).catch(message.reply("Couldn't find that channel")
        db.set(`welcomechannel_${message.guild.id}`, channel.id)
    }
    if(command == "unsetwelcomechannel"){
        db.delete(`welcomechannel_${message.guild.id})
    }
})
client.on("guildMemberAdd", member =&gt; {
    let roleId = db.get(`autorole_${member.guild.id}`);
    if(roleId) member.addRole(roleId).catch(console.error);
    let channelId = db.get(`welcomechannel_${member.guild.id}`);
    if(channelId) channel = member.guild.channels.get(channelId).catch(console.error);
    if(channel) channel.send("x")
})
</code></pre>

<p>The problem is, is that I get a whole lot of errors. <a href="https://imgur.com/a/zUxx9TK" rel="nofollow noreferrer">https://imgur.com/a/zUxx9TK</a></p>

<p>Where and what would I need to put to fix said errors?</p>
