Flask-discord-interactions

Latest version: v2.1.2

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 7

1.2.1

Adds `default_permission` and `permissions` arguments to `DiscordInteractions.command_group()` and `SlashCommandGroup()`. This allows users to set permissions for command groups which will apply to all of the subcommands inside.

Thanks EpocDotFr for bringing this to my attention in 65!

1.2.0

* Bugfix relating to using the bot inside a DM (62, thanks HeroClay!)
* Minor improvements such as a `Context.users` field to better support bots in DMs
* New documentation page explaining how to set up a bot for DM use and differences in the `Context` object when a command is invoked via DM

1.1.1

The reorganization in v1.1.0 added additional packages to the project which were not properly listed in `setup.py`. This release changes the project configuration to include all applicable packages.

(Edit: release is "unverified" because commits were made using `github.dev`).

1.1.0

This release adds the following:

The new ApplicationCommandType enum

This lets you declare a User or a Message command. For more information about these new types of commands, see the [Discord docs](https://discord.com/developers/docs/interactions/application-commands#user-commands).

The syntax is as follows:

python
discord.command(name="High Five", type=ApplicationCommandType.USER)
def highFive(ctx, target):
return f"{ctx.author.display_name} wants to say hello to {target.display_name}"


Thank you fmdaboville for this contribution! (Issue 50, PR 51)

`Response` is now `Message`

To support Message commands, the `Response` class is now the `Message` class. It is now used to represent *incoming* messages (from message commands) in addition to *outgoing* messages (i.e., sent by the bot). It gains some new fields, notably `id`, `channel_id`, `timestamp`, and `author`, which are only set for these incoming messages. (PR 52)

The old name (`Response`) will still work, but it is officially deprecated and will raise a warning.

Other renaming

In addition, `SlashCommand` has become `Command`, `DiscordInteractions.update_slash_commands` has become `update_commands`, etc. Again, the old names still work, but they are deprecated. (PR 52)

Internal reorganization

Internally, models such as the Message, User, Member, and Command classes were reorganized. This *shouldn't* cause any changes from the user perspective, but it's something to note! (PR 52)

1.0.5

This change adds the following features (49):

* `Context.freeze` method to produce a pickleable Context that can be passed to RQ.
* Examples and documentation for writing an app using Flask-Discord-Interactions with RQ.

1.0.4

This release fixes how the Member object parses avatar URLs. Thank you to TheJaffaMeme for reporting this issue! (Issue 47, PR 48)

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.