- (Forum) posts are threads in forum channels.
- Threads can be created per message or per channel.
- Only channel threads can be private.
- For message and forum threads, the thread's ID matches the starter message's ID.
- You can lock threads so only users with the right permissions can send messages.
- Threads can be archived, which removes them from the channel list. This also happens automatically after a period of inactivity.
- You can set how long a thread stays active before auto-archiving with
auto_archive_duration. - Get the archive time with
archive_timestamp.
- You can set how long a thread stays active before auto-archiving with
- automod commands (https://github.com/demoutrei/discord-autobot)
- channel commands
- name
- topic
- thread name (https://github.com/demoutrei/discord-commands)
- overwrites
- invite
- typing event
- user commands
- nickname
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| import datetime | |
| from typing import Any, Literal, Self, overload | |
| import discord | |
| type ValidMediaType = ( | |
| str | |
| | Media | |
| | discord.MediaGalleryItem |
Looking for a non-cv2 paginator? Go to https://gist.github.com/Soheab/f226fc06a3468af01ea3168c95b30af8
- Give this gist a ⭐️ :P
- Copy and paste the contents above into a file like
utils/paginator.py - Import
ButtonPaginatorand subclass it or use it directly anywhere.
Looking to paginate with v2 components like a Container? Go to https://gist.github.com/Soheab/891c39d7294b1bdbadc7ecf35ce51cc5
- Copypaste the contents above into a file like
utils/paginator.py - Import
ButtonPaginatorand subclass it or use it directly anywhere.
ButtonPaginator has a couple of arguments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # for testing: | |
| # import collections | |
| # emoji = collections.namedtuple("emo", ["animated"])(False) | |
| emoji = ... # some (Partial)Emoji object | |
| guild = ... # some Guild object | |
| emojis = guild.emojis | |
| total = len(guild.emojis) | |
| limit = guild.emoji_limit | |
| animated = sum(1 for e in emojis if e.animated) |
The hyperlinks are either links to a gist or discord message in the discord.py server
- [2021-04-04]
- Danny starts development of discord.py 2.0
- [2021-08-28]
- Danny stops dpy development
- [2022-03-06]
- Danny starts dpy development again, after announcement of v10
- [2022-03-14]
- Danny reworks async stuff, breaking changes for all!
"complete" as in it supports app and text commands and has some comments explaining the code. As you may have noticed, there are multiple files in this gist:
Text Cmmands Only Here
See here the complete check with support for app and text commands:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Any, Self, overload | |
| import asyncio | |
| import discord | |
| HasChildren = ( | |
| discord.ui.Container | |
| | discord.ui.ActionRow |
NewerOlder