Nameerror: 'discord' Is Not Defined?
This is for a discord bot I am making, and I have tried to set the bot's status. I've found an answer that looks like await bot.change_presence(activity=discord.Activity(type=disco
Solution 1:
You'll need to import discord
at the top of your code.
Solution 2:
You may have installed discord.py in a seperate location, try installing it to C:\Windows\system32>. You also may be missing an import
.
If you are trying to add commands, you also have to: from discord.ext import commands
.
Is it possible for you to post your code?
Post a Comment for "Nameerror: 'discord' Is Not Defined?"