-1

I don't undertand what I need to change to make my code work.

This is my error message:

File "C:\Users\TVIM\Desktop\Cogs\cogs\events.py", line 15
role = disnake.utils.get( member.guild.roles, id = 1144745255883788340 )
TabError: inconsistent use of tabsand spaces in indentation
[Finished in 103ms]
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 29 '23 at 19:58
  • Please read [Why should I not upload images of code/data/errors?](https://meta.stackoverflow.com/q/285551/354577) Instead, format code as a [code block]. The easiest way to do this is to paste the code as text directly into your question, then select it and click the code block button. – ChrisGPT was on strike Aug 29 '23 at 19:58
  • 1
    As the error message says: You need to fix the indentation of your code. – Dominik Aug 30 '23 at 15:47
  • Unfortunately, pasting the code is not likely to help here, because the editor will turn the tabs into spaces. The error message is quite clear. To avoid errors, Python requires that you either use tabs for indenting or spaces, and you have mixed them. – Tim Roberts Sep 01 '23 at 19:07

0 Answers0