Code: Alles auswählen
import asyncio
import discord
from discord.ext import commands
from discord import Member
client = discord.Client(intents=discord.Intents.all(), command_prefix='!')
@client.command()
async def ping(ctx):
await ctx.send("Pong!")
Traceback (most recent call last):
File ... , line 56, in <module>
@client.command()
AttributeError: 'Client' object has no attribute 'command'
also bei mir ist in line 56 ,,@client.command()
async def ping(ctx):
await ctx.send("Pong!")" drin.
kann mir jemand weiterhelfen? Ich brauch dies dringend.