is_nsfw does not work #5933
-
trying to make a command for my discord server that only works in NSFW channels but when I add this line:
it returns:
it seems it's been removed for some odd reason I heard a lot about discord.py rewirte but it's all 404's and the project seems to be dead I would like a workaround or something like that if possible |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
'discord.py rewrite' is not dead, but discord.py has not been referred to as this for many years now. You're actually within the repo right now and our doc can be found here. Currently we're on version 1.5, known as latest if you'd prefer a name for it. DMChannels do not have an NSFW filter on them, and as such this check will be invalid. You should check for the channel being a non-Guild channel before doing this to prevent this error. |
Beta Was this translation helpful? Give feedback.
'discord.py rewrite' is not dead, but discord.py has not been referred to as this for many years now. You're actually within the repo right now and our doc can be found here.
Currently we're on version 1.5, known as latest if you'd prefer a name for it.
DMChannels do not have an NSFW filter on them, and as such this check will be invalid. You should check for the channel being a non-Guild channel before doing this to prevent this error.