VSCode extension providing useful and up-to-date snippets for discord.py 2.0.
Consistent and easy to remember prefixes
Carefully designed to suit common practices and uses
Fully up-to-date with current version of discord.py
This simple extension provides useful and commonly used snippets for discord.py.
The extension takes common practices of discord.py users into account to provide
snippets that fit most use cases.
All snippets are prefixed with dpy. for ease of usage.
Basic starter boilerplate based on discord.Client class.
Advanced starter boilerplate based on discord.Client subclass.
Basic starter boilerplate based on commands.Bot class.
Shorthand for dpy.bb
Advanced starter boilerplate based on commands.Bot subclass.
An event using the Client.event decorator.
A command using the Bot.command decorator.
A listener using the Bot.listen decorator.
Cogs and Extensions
Basic extension template.
A cog template. Due to common practices, Also includes setup function
A command for cogs using the commands.command decorator.
A cog based listener using the commands.Cog.listener decorator.
Basic ui.View template
Basic function based button using ui.button decorator.
Basic class based button by subclassing ui.Button class.
This extension is focused to bring an enhanced development experience. When generating a
snippet, you can simply type it's prefix and it's description, code and other information
will be shown by VSCode automatically.
You can press Tab to autocomplete the snippet. Each snippet is customizable
and you can press Tab to jump between common points of a snippet to modify
it according to your need.
This extension is powered by contributions! If you want to add a snippet, improve a current
snippet or suggest a snippet, feel free to read our Contribution Guidelines