I encountered an error while using the Discord bot script (discordbot.py). The error message states: "AttributeError: 'NoneType' object has no attribute 'split'". This issue prevents the bot from functioning
if len(bot.endpoint.split("/api")) > 0:
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'
I encountered an error while using the Discord bot script (discordbot.py). The error message states: "AttributeError: 'NoneType' object has no attribute 'split'". This issue prevents the bot from functioning
if len(bot.endpoint.split("/api")) > 0: ^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'split'