Pycord-Development / pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
https://docs.pycord.dev
MIT License
2.7k stars 458 forks source link

running bot after upgrading #2576

Closed K1ng04 closed 3 days ago

K1ng04 commented 3 days ago

Summary

Having trouble using remove_command

Reproduction Steps

Upgraded to the latest version

example code:

intents = discord.Intents.default()
client = commands.Bot(command_prefix='/', intents=intents) 
@client.command(aliases=['next', 'Next', "NEXT"], guild_ids=testserver, name='next', description='used to loop through queue')
async def play_next(ctx):
    ********* code **********

Minimal Reproducible Code

No response

Expected Results

Command to work as expected before upgrade

Actual Results

discord.ext.commands.errors.CommandRegistrationError: The alias next is already an existing command or alias.

Intents

default

System Information

Checklist

Additional Context

Tried running client.remove_command(), but, that hasn't help

plun1331 commented 3 days ago

your command has its own name as an alias

Icebluewolf commented 3 days ago

Feel free to ask for help in our discord: https://discord.gg/pycord