"Set object is not callable" hatası

AhmedAldogan

Hectopat
Katılım
18 Eylül 2020
Mesajlar
300
Çözümler
3
#kolay gelsin from discord.ext import commands Bot = commands.Bot("!mm ") @Bot.commands async def m(msg): await msg.send("En İyisi!") Bot.run(OTc0OTY0NTEyMjI0NjAwMDg0.GyahGj.ad8B8oq9pUG-nMHJRQLRaI2sQQNbreMfv12jD00)



6. satırda "async def m(msg):" Bölümünde set object is not callable hatası alıyorum.(Tokeni verdiğimi sanıp uyarmayın token gerçek değil.)
 
#kolay gelsin from discord.ext import commands Bot = commands.Bot("!mm ") @Bot.commands async def m(msg): await msg.send("En İyisi!") Bot.run(OTc0OTY0NTEyMjI0NjAwMDg0.GyahGj.ad8B8oq9pUG-nMHJRQLRaI2sQQNbreMfv12jD00)



6. satırda "async def m(msg):" Bölümünde set object is not callable hatası alıyorum.(Tokeni verdiğimi sanıp uyarmayın token gerçek değil.)



Şu şekilde dener misin?:
Python:
from discord.ext import commands

Bot = commands.Bot("!mm ")

@Bot.commands() #

async def m(msg):

await msg.send("En İyisi!")

Bot.run(OTc0OTY0NTEyMjI0NjAwMDg0.GyahGj.ad8B8oq9pUG-nMHJRQLRaI2sQQNbreMfv12jD00)
 
Son düzenleyen: Moderatör:

Yeni konular

Geri
Yukarı