A simple snippets extension for the discord.py package for python
Name | Prefix | Description |
---|---|---|
Starter Template | !dpstrt |
A starter template |
Basic Command Template | !cmd |
A basic command template (Not for cogs) |
Basic Event Template | !evt |
A basic event template (Not for cogs) |
Cog Command Template | !cgcmd |
A basic command template for cogs |
Cog Event Template | !cgevt |
A basic event template for cogs |
Cog Template | !cog |
A starter template for a cog |
aiohttp Template | !ahtp |
A basic aiohttp web request template (You need to have bot.session defined as a instance of aiohttp.ClientSession) |
Global Check Template | gbchk |
A basic global check template |
Cog Check Template | !cgchk |
A basic cog check template |
Embed Help | !embedhelp |
A custom help command implementation that modifies the default help and uses embed |
Not Shadowing Command Template | !unscmd |
A basic command template that doesn't shadow another function (Not for cogs) |
Cog Not Shadowing Command Template | !cgunscmd |
A basic command template that doesn't shadow another function for cogs |
Group Template | !grp |
A group template (Can be used in cogs) |
Group Command Template | !grpcmd |
A basic group command template (Can be used in cogs) |
Wait for reaction Template | !waitforreaction |
A wait for template for on_reaction_add |
Wait for message Template | !waitformessage |
A wait for template for on_message |
Discord based exception | !except |
A basic exception template based on a discord error |
Name | Prefix | Description |
---|---|---|
Embed Template | !emb |
Makes a Embed |
Embed Field Template | !embfield |
Adds a field to a embed |
Embed Footer Template | !embfoot |
Adds a footer to a embed |
Embed Author Template | !embauthor |
Adds a author to a embed |
Embed Thumbnail Template | !embthumb |
Adds a image to a embed |
Embed Image Template | !embimg |
Adds a thumbnail to a embed |
Embed Page Reaction Template | !embpagere |
Makes a embed with page navigation |
Name | Prefix | Description |
---|---|---|
Owner only check Template | !owneronly |
Sets a command as owner_only |
NSFW only check Template | !nsfwonly |
Sets a command as nsfw only |
Has Permissions check Template | !hasperms |
makes a command require a permission |
Guild Only check Template | !guildonly |
makes a command require the user to be in a guld |
Name | Prefix | Description |
---|---|---|
Button | !button |
A basic button |
Custom Button | !cbutton |
A button with a custom constructor |
Select | !select |
A basic select |
- Use Tab to navigate between required inputs
- Use Shift+Tab to edit the previous input
- Once a input is focused on, press backspace and then press tab to skip it if you don't want to add that
- Once a input is focused on, press tab to skip and keep the default value
- If you don't want something, you can press backspace to remove it
There isn't many snippets so any suggestions for snippets would be appreciated
You can open a pull request anytime and I will look into it
I suggest seeing the vscode snippets documentation before you open a pull request
- Initial release of discord.py-snippets
- Fixed some bugs
- Added 3 new snippets,
!gbchk
,cgchk
&!embedhelp
\ - Added more info in the readme file
- Added not shadowing command snippets (for function names for commands that are already defined)
- Added embed snippets
- embed
- field
- footer
- author
- image
- thumbnail
- Fixed a issue in the
!emb
snippet where there were double commas
- Fixed a issue in the
!emb
snippet where there was a : where there shouldn't be one
- Added Group Template
!grp
- Added Group command Template
!grpcmd
- Made event names always start with
on_
- Made it easier to add commands with aliases
- Changed the command in
!dpstrt
fromtest
tohello
- Made it easier to know what a value is for
- Fixed a bug in
!cgcmd
where the aliases field would have a unnecessary comma
- Changed the
!cog
snippet to use the current file name as the cog name, thanks to QuaKe - Added
!owner_only
check - Added
!nsfw_only
check - Added
!hasperms
check - Added
!cooldown
decorator - Added
!waitforreaction
snippet - Added
!waitformessage
snippet
- Added UI Category with
!button
,!cbutton
and!select
- Added
!except
snippet - Fixed indendation in
!embedhelp
- Added a
on_ready
event in the!dpstrt
snippet
- Added a
on_ready
event in the!dpstrt
snippet - Fix LICENSE year
- Small fix
- Fix
!grpcmd
snippet
- Fix
!grpcmd
snippet
- Add
!embpagere
snippet
- Add
!guildonly
snippet - Fix
!embpagere
snippet
Enjoy!