I was trying to make a quick bot for discord and I used this code:
import discord
from discord.ui import button, view
from discord.ext import commands
client = discord.Client()
@client.event
async def on_ready():
print('Autenticazione riuscita. {0.user} è online!'.format(client))
But this error pops up:
Client.__init__() missing 1 required keyword-only argument: 'intents'
I tried putting something between the brackets, like this:
import discord
from discord.ui import button, view
from discord.ext import commands
client = discord.Client(0)
@client.event
async def on_ready():
print('Autenticazione riuscita. {0.user} è online!'.format(client))
But instead I get this error:
Client.__init__() takes 1 positional argument but 2 were given
I'm probably missing something obvious, since on another pc the exact same code, with exact same modules and same python version works just fine. Any suggestions?