Rapptz
c055fd32bb
Fix ui.Button providing a custom_id for premium buttons
10 months ago
DA344
be9edf8deb
Remove setting sku_id explicitly via button decorator
Co-authored-by: Danny <[email protected] >
10 months ago
DA344
356474ffb9
Add ButtonStyle.premium
10 months ago
Soheab_
070ae24d8d
Document all limits in discord.ui
1 year ago
Ionite
6981eb69c4
Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`,
`__class__.__name__!r` to the standard form of
`__class__.__name__`
3 years ago
Varun J
c26473d0eb
Fix views not being persistent if modifying custom_id after __init__
3 years ago
Lilly Rose Berner
7267d18d9e
Improve component typing
3 years ago
Lilly Rose Berner
7ee15e1d68
Use typing.Literal for channel and component type annotation
3 years ago
Rapptz
e515378076
Remove annotation on row property in subclasses
3 years ago
Rapptz
3215cb65e2
Raise if custom_id is not a str
3 years ago
Rapptz
968a1f366f
Change View callback order to (self, interaction, item)
This is more consistent with the rest of the library which always has
the interaction as the first parameter. This has been done before in
the command extension as well, the first parameter is always either
self or the context.
3 years ago
Rapptz
934ab4151a
Mark state refresh methods as private with an underscore
People kept wondering what it is or what it does.
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Josh
d409ddd227
Alter return-type of button/select decorators
3 years ago
Rapptz
097b6064f1
Fix ui.Button constructor default style to match the decorator
4 years ago
Rapptz
9ac459b5d3
Add a default style for buttons
This makes it easier to create URL buttons since the library will
automatically assign the proper style for it.
4 years ago
Nadir Chowdhury
abac04b759
Fix link buttons not being regarded as persistent
4 years ago
Josh
233d10649c
[docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Rapptz
1c640ad72b
Lazily create Button custom_ids in decorator interface
The previous code would make two separate instances share the custom_id
which might have been undesirable behaviour
4 years ago
Rapptz
47f2d04940
Allow passing Emoji in components
4 years ago
Rapptz
7c40e83d10
Ensure views added to Client.add_view are persistent views
4 years ago
Rapptz
c811932ca7
Don't mark URL buttons as dispatchable
4 years ago
Rapptz
09f0ed1fba
Mention that rows are explicitly 0 indexed.
4 years ago
Rapptz
7bd1211b36
Rework item grouping behaviour to take into consideration weights
This also renames `group` into `row`
4 years ago
Rapptz
ef9f61a933
Add support for select components
4 years ago
Rapptz
6874aa73c4
Add PartialEmoji.from_str helper
4 years ago
Zomatree
6cc3e572ba
Button labels can be None
4 years ago
Rapptz
5e96ad9261
Force button style to link if a URL is passed
4 years ago
Rapptz
eda6680377
Rename enums to use official API naming
4 years ago
Rapptz
ed9badcddf
Make Item and Button generic over the underlying view
4 years ago
Rapptz
4c0ebc9221
Change the way callbacks are defined to allow deriving
This should hopefully make these work more consistently as other
functions do.
4 years ago
Rapptz
98570793e4
Add initial support for buttons and components
4 years ago