Home > other >  Command takes 10 minutes to run after 2 successful runs
Command takes 10 minutes to run after 2 successful runs

Time:10-31

I have a command that allows me to edit text channel information like the name, topic, ect.

When running the command, I would run it the same each time: .channel > React with E, React with N, type name I would repeat this two or three times, and usually on the third attempt it would wait 10 minutes before actually changing the name and editing the embed, I've asked a friend and both of us are lost on what to do in this situation.

I also don't know if defining the 'editstart' function so I can use 'back' is the best way of doing things, but it was one of the first things I came up with when hit with the dilemma.

Code: (I have remove a lot, but kept all the important bits)

@commands.command()
@commands.has_permissions(manage_channels=True)
async def channel(self, ctx):
    embed=discord.Embed(colour=author.colour)

    ...

    message=await ctx.send(embed=embed)

    try:
        def check(reaction, user):
            return user == ctx.author and str(reaction.emoji) in emojis
        reaction, user=await self.client.wait_for('reaction_add', timeout=15, check=check)

        if str(reaction.emoji) == '           
  • Related