#turning a bot give error

1 messages · Page 1 of 1 (latest)

solemn harnessBOT
#
Too Many Tags

Please use either the disnake or python tag, but not both. If your question pertains to disnake, please use the disnake tag. If your question is a general python question that does not depend on disnake, please use the python tag.
I've taken a guess based on the contents of your message which your question is actually about.

If you believe this to be in error, please let us know.

shadow plaza
#

disnake version

#

Which is.

#

And py version?

#

hmm

storm echo
#

looks like it's a python error ig

#

I mean, because of the version

shadow plaza
#

3.9 shouldn't cause errors though?

hard summit
#

I thought the ^^^^^ error marking was a 3.11 feature?

storm echo
hard summit
#

Yeah, the "Fine-grained error location" was added with PEP 657 so its probably running in 3.11

shadow plaza
#

Yup.

#

Probably just need to downgrade to 3.10 or actually run it on 3.9, if that's also installed.

hard summit
#

From experience i know its a bit of a pain to get the right python version to run in windows. They might have installed 3.11 from windows store. And it took priority over everything last i installed it.

hard summit
#

have your friend write py --version

fiery arrowBOT
#

Hey @vocal birch!

It looks like you're trying to paste code into this channel.

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
hard summit
#
intents = disnake.Intents().all()
bot = commands.InteractionBot(
    command_sync_flags=commands.CommandSyncFlags.default(),
    intents=intents
)
#

you don't need command_prefix when you're doing slash commands

#

Its even there in the printout lol, disnake is still in the process of being transfered to 3.11. Would suggest you use 3.10 or 3.9 for now