Index
Let's be honest; reading API documentation is a bit of a pain. These guides are meant to help you get started with the library and offer a point of reference.
Note
As with many Python libraries, you may use import interactions
and do interactions.X
for your objects. The documentation leads more towards using from interactions import X
, however.
Events, errors, and utilities are under their own sub-namespace when using import interactions
. For example, events are under interactions.events.X
.
-
Ready to get your Python on and create a Discord bot? This guide's got you covered with installation options and a basic bot code example.
-
Want to create your own bot but don't know where to start? This guide has you covered from bot-tom to top!
-
Slash commands are a cut above the rest - this guide will show you how to create your very own slash commands.
-
Create menus that are so good, they'll have your users right-clicking for more.
-
While interactions are cool and all, they are still missing a vital component. Introducing components, aka Buttons, Selects, soon Text Input Fields
-
Ready to pop-up your user interface game? This guide will show you how to create modals.
-
If your bot is complex enough, you might find yourself wanting to use custom models in your commands. Converters are classes that allow you to do just that.
-
HEY! LISTEN! If you want to know more about events, you can check out this guide.
-
Damn, your code is getting pretty messy now, huh? Wouldn't it be nice if you could organise your commands and listeners into separate files?
-
So you want to start playing some 🎵tunes🎶 in voice channels? Well let's get that going for you.
-
So your bot has grown, and now you need to
localizelocalise your bot. Well thank god we support localisation then, huh? -
Going old-school with prefixed-commands? No problem. Let's get your message commands up and running.
-
We've all hit that point where Discord won't let you send enough characters, at that point you can either flood the channel with multiple messages, or you can start paginating your messages.
-
Tasks are background processes that can be used to asynchronously run code with a specified trigger.
-
Oh damn, your bot is getting pretty big, huh? Well I guess its time we discuss sharding.
-
What's the difference between interactions.py and discord.py?
-
How do I migrate from interactions.py v4 to v5?
-
How do I migrate from NAFF to i.py v5?