Attributeerror: 'nonetype' Object Has No Attribute 'channels'
Hi I'm having an issue with a module for my Discord bot. I'm getting AttributeError: 'NoneType' object has no attribute 'channels' I'm not sure way it's throwing out this error: He
Solution 1:
You are trying to access the channels
property of some object, but that object is None
== Null in other languages.
From your code the only place you reference channels is message.guild.channels
, in the channel = get(message.guild.channels, name="gtky")
line, so the guild
property of the message object is None
Post a Comment for "Attributeerror: 'nonetype' Object Has No Attribute 'channels'"