issue with a lock channel command
why the bot instead of sending the errEmbed when the channel is locked it just runs the rest of the code? (the bot should send the "errEmbed" only if the channel permission "SendMessages" is set to deny)
49 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it has administrator
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
no errors
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
alr
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the bot?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
that's the everyone role id
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
didn't work
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it doesn't
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
it's message.channel so the same channel where the command is getting ran in
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
wdym
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
why would that be needed
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
no
ik
simply a command that locks the provided channel, if none is provided it will lock the current channel
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
changing the "sendMessages" permission to "deny"
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the bot instead of sending the errEmbed when the channel is locked it just runs the rest of the code
all the code works perfectly, the only part that doesn't is where the bot checks if the channel is locked
what does the bot return when it locks the channel?
sorry i was afk
i do not use .serialize
oh
why did it skip
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
if(!message.member.roles.cache.has(config.moderation.modRole)) return message.delete();
for some reason it doesn't let me
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
file error
vsc detected an error
2 actually
yeah i think
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
no
fixed code
yeah
this again
idk what's wrong with this
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
vsc doesn't detect any error with this, gonna see if it works
no longer gives file errors
gonna test it
now it always return the message.channel.send