Intent fix (#26)
* fix: potential missing intent bug - Fixes discord.py 2.0 intent missing bug (hopefully) task: none * reverts weird working copy rename of run.py * Updates Discord.py to 2.0.1 Discord.py 2.0 was released and I didn't even notice! * removes discord.py from dockerfile
This commit is contained in:
3
run.py
3
run.py
@@ -23,8 +23,9 @@ if switch == 0:
|
||||
class Bot(commands.Bot):
|
||||
def __init__(self) -> None:
|
||||
print("Initializing Discord bot")
|
||||
intents = discord.Intents.default()
|
||||
intents = discord.Intents.all()
|
||||
intents.members = True
|
||||
intents.message_content = True
|
||||
super().__init__(command_prefix=".", intents=intents)
|
||||
|
||||
async def on_ready(self):
|
||||
|
||||
Reference in New Issue
Block a user