Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7193

Bot sends DM to me and then crashes in client.on('message'

$
0
0
    let me = message.guild.members.cache.get('MyId');    if(message.content.includes('Ping!')) {        me.send('Pong!')    return;    }

I've tried replacing me.send with message.channel.send two times, one excluding the 'let me' code and one including the 'let me' code, both times it worked fine


Viewing all articles
Browse latest Browse all 7193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>