"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:
| from typing import Any, Self, overload | |
| import asyncio | |
| import discord | |
| HasChildren = ( | |
| discord.ui.Container | |
| | discord.ui.ActionRow |
"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:
The hyperlinks are either links to a gist or discord message in the discord.py server
| # 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) |
Looking to paginate with v2 components like a Container? Go to https://gist.github.com/Soheab/891c39d7294b1bdbadc7ecf35ce51cc5
utils/paginator.pyButtonPaginator and subclass it or use it directly anywhere.ButtonPaginator has a couple of arguments.
Looking for a non-cv2 paginator? Go to https://gist.github.com/Soheab/f226fc06a3468af01ea3168c95b30af8
utils/paginator.pyButtonPaginator and subclass it or use it directly anywhere.| from __future__ import annotations | |
| import datetime | |
| from typing import Any, Literal, Self, overload | |
| import discord | |
| type ValidMediaType = ( | |
| str | |
| | Media | |
| | discord.MediaGalleryItem |
auto_archive_duration.archive_timestamp.