#All previous code broke

1 messages · Page 1 of 1 (latest)

daring lion
#

I haven't updated any of my code or version, but I get errors for even the most basic things that shouldn't happen. For instance

  File "c:\Users\peque\OneDrive\Documents\GitHub\things-with-tokens\tusk\main.py", line 21, in <module>
    loadExts("commands")
  File "c:\Users\peque\OneDrive\Documents\GitHub\things-with-tokens\tusk\main.py", line 19, in loadExts
    [bot.load_extension(f"{dir}.{EXT}") for EXT in exts]#Load extensions#Load extensions
  File "c:\Users\peque\OneDrive\Documents\GitHub\things-with-tokens\tusk\main.py", line 19, in <listcomp>
    [bot.load_extension(f"{dir}.{EXT}") for EXT in exts]#Load extensions#Load extensions
AttributeError: 'Client' object has no attribute 'load_extension'. Did you mean: 'get_extension'?```

Load extension doesn't even work, and I had to change previously working code to even get to that error
supple foxBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

digital gazelle
#

This is almost certainly an error on your end