Fix i forgot to apply

should fix crash when muted
This commit is contained in:
TheCrazyInsanity
2023-11-19 21:39:47 -05:00
committed by GitHub
parent fab0342458
commit b2c6cad560

View File

@@ -108,7 +108,7 @@ const newmsg = function(isserver, guildid, channelid, content){
ognum = fs.readFileSync(`./bin/servers/${guildid}/ognum.txt`)
curnum = fs.readFileSync(`./bin/servers/${guildid}/curnum.txt`)
if(curnum >= ognum){
if(client.guilds.cache.get(guildid).members.cache.get(client.user.id).permissionsIn(channelid, "SEND_MESSAGES")){
if(client.guilds.cache.get(guildid).members.cache.get(client.user.id).permissionsIn(channelid).has("SEND_MESSAGES")){
client.guilds.cache.get(guildid).channels.cache.get(channelid).sendTyping()
markovgen(true, guildid).then((result)=>{
if(result==""||result==" "){