Discord.py (client.get_channel)
Résolu
Alexouz
Messages postés
84
Date d'inscription
Statut
Membre
Dernière intervention
-
Alexouz Messages postés 84 Date d'inscription Statut Membre Dernière intervention -
Alexouz Messages postés 84 Date d'inscription Statut Membre Dernière intervention -
Bonsoir cela fait un moment que j'ai ce problème mais je l'avais ignoré jusqu'a présent
je voulais utilisé client.get_channel mais cela ne marche pas ça me met ("Nonetype" object has no attribute "send"), Pourtant j'ai mis les Intents.
le programme:
default_intents = discord.Intents.default()
default_intents.members = True
client = discord.Client(intents=default_intents)
@bot.command()
async def test(ctx):
channel = client.get_channel(855404483294789684)
await channel.send("Hello world")
await ctx.send("hello")
je voulais utilisé client.get_channel mais cela ne marche pas ça me met ("Nonetype" object has no attribute "send"), Pourtant j'ai mis les Intents.
le programme:
default_intents = discord.Intents.default()
default_intents.members = True
client = discord.Client(intents=default_intents)
@bot.command()
async def test(ctx):
channel = client.get_channel(855404483294789684)
await channel.send("Hello world")
await ctx.send("hello")
A voir également:
- Get channel discord.py
- Get data back - Télécharger - Récupération de données
- Homebrew channel wii ne fonctionne plus ✓ - Forum Jeux vidéo
- Wmic path softwarelicensingservice get oa3xoriginalproductkey - Forum Windows 10
- Get get get get down année 80 ✓ - Forum Musique / Radio / Clip
- Channel size limit exceeded ✓ - Forum Mail