Replies: 1 comment 2 replies
-
Both permissions and administrator have been spelt wrong. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in github could not find an answer to this question. The fact is that the code is written off 100% from the guide on YouTube. The code works completely for the author of the video, but I get an error.
@client.command(pass_context=True)
@commands.has_premissions(administrstor=True)
async def clear(ctx, amount=100):
await ctx.channel.purge(limit=amount)
or
it is worth noting that
pass_context
does not play any role at all: what's with it, what's without it, there is no differenceImports:

Error:

Beta Was this translation helpful? Give feedback.
All reactions