Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 59ae7ad

Browse files
committed
updated version+ changelog
1 parent fab9faa commit 59ae7ad

File tree

3 files changed

+5
-368
lines changed

3 files changed

+5
-368
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ You can contact us on discord
206206

207207
# Changelog
208208

209+
This will be moved to https://discord-py-ui.github.io/discord-ui/
210+
209211
- <details>
210212
<summary>5.1.2</summary>
211213

changelog.md

Lines changed: 2 additions & 367 deletions
Original file line numberDiff line numberDiff line change
@@ -1,371 +1,6 @@
11
# Discord UI
22

3-
## 5.0.2
3+
## 5.1.6
44
### Fixed
5-
- Removed print statements
65

7-
## 5.0.1
8-
### Fixed
9-
- Choices not working
10-
11-
## 5.0
12-
### Fixed
13-
- Roles not being parsed correctly
14-
15-
### Changed
16-
- default_permission
17-
> default_permission can now be of type `discord.Permissions` but the api doesn't support that yet.
18-
- slash http
19-
> some code changes to slash-http features
20-
21-
### New
22-
- ChoiceGeneratorContext
23-
> Context class for choice generation
24-
- SlashOption
25-
> `choice_generator` keyword and `autocomplete` keyword.
26-
> `autocomplete` is not needed if you pass choice_generator
27-
- File sending
28-
> You are now able to send hidden files
29-
30-
## (The others comming soon)
31-
32-
## 4.0
33-
### New
34-
**You now have much more control over your slash commands!**
35-
- Permissions
36-
> You can update your permissions with the `Slash.update_permissions` function
37-
- Creating commands
38-
> You can now create slash commands without the decorator in a much more eaisier way! Check out the `Slash.add_command` function
39-
- Edit commands
40-
> You can edit commands in code with the `Slash.edit_command` function
41-
42-
- Listening components
43-
> You can add and remove listening components now with the `Components.add_listening_component`, `Components.remove_listening_component` and `Components.remove_listening_components` functions
44-
45-
- Cogs
46-
> You can now use cog decorators like `slash_cog`, `subslash_cog` and `listening_component_cog`
47-
48-
### Fixed
49-
- SlashCommand
50-
> Slash commands wouldn't be updated if only `default_permission` was changed
51-
52-
### Changed
53-
- wait_for
54-
> Message.wait_for now takes `by` and `check` as parameters and `event_name` and `client` switched place (`wait_for(client, "event_name")` is now `wait_for("event_name", client)`)
55-
- listening components
56-
> You can specify listening_components now more presicely, you can add messages, users, and a check to filter
57-
- Interaction.member
58-
> `Interaction.member` is now `Interaction.author`
59-
- listening comonents
60-
> Listening component callback functions now only take one parameter, the used component
61-
- `on_button_press` and `on_menu_select`
62-
> These events now take a sole parameter, the used component. If you want to acces to message, use `passed_component.message`
63-
64-
### Removed
65-
- ResponseMessage
66-
> Removed ResponseMessage
67-
68-
## 3.3.5
69-
### Fixed
70-
- SelectMenu
71-
> SelectMenu issue when creating it from data
72-
73-
74-
## 3.3.4
75-
### Changed
76-
- edit
77-
> `Message.edit` now takes a `embed` parameter
78-
79-
### Fixed
80-
- print
81-
> Forgot to remove some `print` statements
82-
83-
84-
## 3.3.3
85-
### New
86-
- class representation
87-
> classes have now a `__repr__` function
88-
- UI(override_dpy)
89-
> You can now choose whether you want to override some of dpy objects and functions (default is True) (see [the override module](https://github.com/discord-py-ui/discord-ui/blob/main/discord_ui/override.py) for more information)
90-
> This also appeals to the `Components` class (Components(override_dpy))
91-
> note: if you don't want to create a `UI` object, you can instead override dpy with the `override_dpy` method
92-
```py
93-
from discord_ui import override_dpy
94-
95-
override_dpy()
96-
```
97-
### Fixed
98-
- dpy2
99-
> discord.py v2 now auto-decompresses socket data and passes a string instead of the uncompressed data.
100-
- override dpy message
101-
> when overriding dpy message object, the components would m
102-
## 3.3.2
103-
### New
104-
- EphemeralResponseMessage
105-
> You can now edit a ephemeral message which was created from an interaction (ex. when a button in a hidden message was pressed)
106-
107-
## 3.3.1
108-
### New
109-
- interaction
110-
> `Interaction.channel` and `Interaction.guild`
111-
112-
## 3.3.0
113-
### Fixed
114-
- interaction usage in dms
115-
116-
## 3.2.9
117-
### New
118-
- ratelimit fix
119-
> The lib will now retry after the ratelimit reset and doesn't throw an HTTPException anymore
120-
### Fixed
121-
122-
- sync_commands
123-
> Got `KeyError` exception while syncing commands
124-
125-
## 3.2.8
126-
### Fixed
127-
- hidden responding
128-
> When a hidden response was about to be send without defering the interaction it would thrown an error
129-
## 3.2.7
130-
### New
131-
- warnings
132-
- When a guild_permission with an invalid guild id is passed, it will throw an exception when syncing the commands
133-
- When the value of a guild_permission is not of type `SlashPermission` it will throw an exception
134-
- context-commands
135-
> You can now have context commands with the same name as a normal slash command
136-
- slashcommand description
137-
> You can use docstrings `"""docstring"""` for setting the description of a slash commmand by setting the dosctring for the callback function
138-
139-
### Changed
140-
141-
- auto_defer
142-
> auto_defer is now disabled by default
143-
- slash sync
144-
> You can now disable auto_sync for slash commmands and sync them by yourself with `Slash.sync_commands(delete_unused)`
145-
- Interacion.defer
146-
> `Interaction._deferred` is not `Interaction.deferred` and `Interaction.defer()` doesn't throw an exception anymore, it will just log the error with `logging.error()`
147-
148-
### Fixed
149-
- try
150-
> There was a try/catch in the `Interaction.respond` function that would allow the code to continue when an exception occured while responding with ninja_mode
151-
- context commands
152-
> There was an issue adding context-commands
153-
- Command checking
154-
> Now, the libary only edits commands when changes were made
155-
## 3.2.6
156-
### New
157-
- auto ``ninja_mode``
158-
> If you use `.respond()`, the function will try to use ninja_mode automatically
159-
### Fixed
160-
- ninja_mode response
161-
> responding with ninja_mode would end up in an exception
162-
163-
- file sending
164-
> fixed another file sending issue with slash commands
165-
### Changed
166-
- project
167-
> Moved git-project to https://github.com/discord-py-ui/discord-ui
168-
169-
## 3.2.5
170-
171-
### Fixed
172-
- #89 (thanks for reporting)
173-
174-
## 3.2.4
175-
### Fixed
176-
- version issues with the package
177-
178-
## 3.2.2
179-
180-
### Fixed
181-
- #85: `AttributeError: module 'discord' has no attribute '_Components__version'`
182-
183-
## 3.2.0
184-
### New
185-
- Interaction
186-
> Buttons and SelectMenus have a `.message` property for the message where their interaction was creted
187-
> ResponseMessages have a `.interaction` property for the received interaction
188-
189-
- Events
190-
> We added a `interaction_received` event for all interactions that are received
191-
### Fixed
192-
I'm really sorry for all the issues this libary got, if you still find issues, please report them in https://github.com/discord-py-ui/discord-ui/issues
193-
194-
- SelectOpion
195-
> There was an issue with emojis not being set in SelectOptions
196-
197-
- LinkButton
198-
> There was an issue with setting the url not being set
199-
200-
- SlashCommands
201-
> There was an issue with creating commands that don't already exist
202-
203-
### Changed
204-
- SelectedMenu
205-
> `.values` is not `.selected_values`
206-
207-
## 3.1.0
208-
### New
209-
- discordpy 2 support
210-
> We added support for discord.py v2, so you can stay loyal to our libary and use it together with discord.py v2!
211-
212-
- Exceptions
213-
> Added own Exceptions for errors
214-
215-
- ParseMethod
216-
> You can change the way the extension parses interaction data. You can choose between [different Methods](https://discord-ui.rtfd.io/en/latest/ui.html#id1)
217-
218-
- Auto-defer
219-
> The libary will autodefer all interactions public. If you want to change that, take a look at [the documentation for this feature](https://discord-ui.rtfd.io/en/latest/ui.html#id2)
220-
221-
- slashcommand edit check
222-
> Slash commands will only be edited if there were some changes, so you won't get a `invalid interaction` error in discord after starting the bot
223-
> If only permissions were changed, just the permissions will be edited and not the whole command like before
224-
### Fixed
225-
- slash commands
226-
> I finally fixed the damn slashcommand system, it should work now
227-
228-
- Parsing
229-
> The resolving, fetching and pulling from the cache methods should all work
230-
231-
## 3.0.1
232-
### Fixed
233-
- small project issues
234-
235-
## 3.0
236-
### New
237-
- context commands
238-
> Context commands are now available
239-
240-
### Changed
241-
- Project name
242-
> The project's name was changed from `discord-message-components` to `discord-ui`
243-
244-
- ``Extension`` is now ``UI``
245-
246-
## 2.1.0
247-
### New
248-
- Webhook support
249-
> You are now able to use webhooks together with message components, to send a webhook message with the components, use the `Components.send_webhook` function.
250-
> The standart webhook function is also overriden with the new component function
251-
252-
- Float type
253-
> You can now use `float` as the argument type for a slash command option
254-
255-
- Auto empty names
256-
> Buttons, LinkButtons and SelectOptions labels are now by default `\u200b`, which is an "empty" char
257-
258-
259-
### Changed
260-
- Code documentation to more be more informative
261-
262-
### Fixed
263-
- Fixed small code issues (they were already fixed in previous versions, but I just wanna list this here)
264-
265-
- Docs are now working
266-
267-
## 2.0.2
268-
### Fixed
269-
- SelectOption
270-
> Select option threw an exception if it was smaller than 1 or higher than 100
271-
272-
## 2.0
273-
### New
274-
- Slashcomamnd support
275-
- `Slash` class for slash commands
276-
- `Slash.command`, `Slash.subcommand` and `Slash.subcommand_groups` are available for creating slash commands
277-
- `SlashedCommand` and `SlashedSubCommand` are there for used slash commands
278-
279-
- ``Message``
280-
- disable_action_row(row_numbers: `int` | `range`, disable: `bool`)
281-
> disables (enables) component row(s) in the message
282-
283-
- disable_components(disable: `bool`)
284-
> disables (enables) all componentss
285-
286-
- overrides
287-
- `Messageable.send` returns Message instead of discord.Message and takes components parameter
288-
- `override_client` function added
289-
290-
- `interaction.send`, creates followup messages which can be hidden
291-
292-
- `Component.listening_component`
293-
> A listening component with a callback function that will always be executed whenever a component with the specified custom_id
294-
was used
295-
296-
297-
### Changed
298-
- ``Message``
299-
- All Message objects don't use the client object anymore
300-
- Message.wait_for now needs the client as the first parameter
301-
302-
### Fixed
303-
- Interaction
304-
> All interaction responses work now
305-
- A lot of issues I fogor💀
306-
307-
## 1.2.2
308-
### Fixed
309-
- Docs fixed
310-
311-
## 1.2.1
312-
### Fixed
313-
- Small code fixes
314-
315-
## 1.2.0
316-
### New
317-
- Complete message component suppport
318-
- Select menus
319-
- [documentation](https://discord-ui.readthedocs.io/en/latest/)
320-
321-
322-
## 1.1.2
323-
### Fixed
324-
- Small code fixes
325-
326-
## 1.1.1
327-
328-
### New
329-
- Message.edit()
330-
> You can now edit messages with button support
331-
332-
## 1.1.0
333-
334-
### Changed
335-
- Major changes to request code, now using the client's request
336-
- `ResponseMessage.acknowledge()` -> `ResponseMessage.defer()`
337-
> Changed the name of the function + changed `ResponseMessage.acknowledged` -> `ResponseMessage.deferred`
338-
- `ResponseMessage.defer()` => `await ResponseMessage.defer()`
339-
> `defer` (`acknowledge`) is now async and needs to be awaited
340-
### New
341-
- hidden responses
342-
> You can now send responses only visible to the user
343-
### Fixed
344-
- `ResponseMessage.respond()`
345-
> Now doesn't show a failed interaction
346-
347-
## 1.0.5
348-
### Fixed
349-
- `ResponseMessage.respond()`
350-
> responding now doesn't fail after sending the message, it will now defer the interaction by it self if not already deferred and then send the message
351-
352-
## 1.0.4
353-
### New
354-
355-
- `ResponseMessage.acknowledged`
356-
> Whether the message was acknowledged with the `ResponseMessage.acknowledged()` function
357-
358-
### Changed
359-
360-
- `ResponseMessage.respond()` => `await ResponseMessage.respond()`
361-
> respond() function is now async and needs to be awaited
362-
363-
- `ResponseMessage.respond() -> None` => `ResponseMessage.respond() -> Message or None`
364-
> respond() now returns the sent message or None if ninja_mode is true
365-
366-
## 1.0.3
367-
368-
### New
369-
370-
- `Button.hash`
371-
>Buttons have now a custom hash property, generated by the discord api
6+
- guild permissions not being applied due to an comparison issue with the api permissions and the local guild permissions

discord_ui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@
4747

4848

4949
__title__ = "discord-ui"
50-
__version__ = "5.1.5"
50+
__version__ = "5.1.6"
5151
__author__ = "404kuso, RedstoneZockt"

0 commit comments

Comments
 (0)