#how to make the bot be used in multiple servers
1 messages · Page 1 of 1 (latest)
what do u mean?
If you need to store data based on each server, you would likely use a dict so you can map queues to servers and other identifiers.
If you need this to be persistent, as in, survive a bot restart, you need a database.
i have one more question
like do u know how add options
like when i do /hi
then there should be a option
of these
can u show me any example
Choices or autocomplete
An example showcasing the two ways of adding autocompletion to slash command options.
idk which is just to click
and it auto fill it
They both will provide options to the user.
Choices is strict and only allows the users to select from the available options. It cannot be dynamic though.
Autocomplete appears the same to the user, but does not enforce their selection and can be dynamically loaded.
can u give me a example of choices
like make me a command
and i will understand
Like this - is autocomplete which dynamically loads the options based on what the user types
yeah it's autocomplete
can u make me a command
i don't get by seeing their
reference
ngl
No, but you can read the documentation I linked that literally has exampes.
i don't get it ngl
i need someone to tell in simple words
Then how you do you expect me to give you yet another example that you won't understand?
no like give me a example command and i will see it and understand it
because the example command on the docs is hard i don't get it
The documentation literally has more than 1 example command.
Then you need to hard stop, and go learn python.
It's a strict requirement for using disnake, discord.py, etc.
I don't know what else to tell you. I'm not going to write your command for you. If you can't look at the 4+ examples in the documentation and the repo examples, then me giving you another example isn't going to help.
no
i saw it now
ok i got it