tibue99 / ezcord

An easy-to-use extension for Discord.py and Pycord

Home Page:https://ezcord.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Bot' object has no attribute 'command_prefix'

rishicorp1 opened this issue · comments

EzCord Version

latest

Version

latest

Bug Description

this ezcord extentions bot object has no attribute called commandprefix

Reproduction Steps

client = ezcord.Bot(command_prefix=Auth.COMMAND_PREFIX, intents=intents, auto_sync_commands=True)

Minimal Reproducible Code

No response

Expected Results

all simply started

Actual Results

[ERROR] Error in event on_ready
Traceback (most recent call last):
File "C:\Users\rishi\Desktop\gannu_work\venv\Lib\site-packages\discord\client.py", line 378, in _run_event
await coro(*args, **kwargs)
File "C:\Users\rishi\Desktop\gannu_work\main.py", line 70, in on_ready
await update_status()
File "C:\Users\rishi\Desktop\gannu_work\main.py", line 38, in update_status
f'{client.command_prefix} prefix',
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Bot' object has no attribute 'command_prefix'

commented

Hey, ezcord.Bot does only support slash command by default. If you want to use prefix commands, use ezcord.PrefixBot as described here.

d.Bot does only support slash command by default. If you want to use prefix commands, use ezcord.PrefixBot as described here.

thanks bro then i did not readed full docs sorry my mistake btw thanks for this nice extention module