transfervaryt
Picopat
- Katılım
- 18 Ekim 2023
- Mesajlar
- 25
Daha fazla
- Cinsiyet
- Erkek
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Context' object has no attribute 'messsage'
Diye bir hata alıyorum. Kodlar aşağıda. Yardım edin n'olur.
('Burayı Vermiyorum')
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Context' object has no attribute 'messsage'
Diye bir hata alıyorum. Kodlar aşağıda. Yardım edin n'olur.
Python:
import discord
from discord.ext import commands
from random import randint as r
intents = discord.Intents.default()
intents.message_content = True
Bot = commands.Bot(command_prefix="c! ", intents=intents)
cikan = 0
Cevapli = 0
@Bot.event
async def on_ready():
print("Şimdi ONLINE!")
@Bot.command()
async def zar_at(ctx):
cikan = r(1,6)
await ctx.send(cikan)
@Bot.command()
async def soru(ctx):
await ctx.message.add_reaction("")
@Bot.command()
async def tamin(ctx,args):
Cevapli = r(1,4)
zor = str(Cevapli)
if args == Cevapli:
await ctx.message.add_reaction("")
await ctx.message("Doğru! Cevap " + zor + " Seçeneğidir.")
else:
await ctx.message.add_reaction("")
ctx.messsage("Doğru")
#ctx = msg veri alma
Bot.run
('Burayı Vermiyorum')
Son düzenleyen: Moderatör: