Discord-qalib

Latest version: v2.5.10

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

Scan your dependencies

Page 3 of 3

2.1.2

What's Changed
* ๐Ÿ› Use shallow copy rather than deep copy of messages. by YousefEZ in https://github.com/YousefEZ/discord-qalib/pull/131
* Version bump by github-actions in https://github.com/YousefEZ/discord-qalib/pull/132
* ๐Ÿ› fix rendering of unicode emojis in the place of the name tag by YousefEZ in https://github.com/YousefEZ/discord-qalib/pull/133
* Version bump by github-actions in https://github.com/YousefEZ/discord-qalib/pull/134


**Full Changelog**: https://github.com/YousefEZ/discord-qalib/compare/2.1.0...2.1.2

2.1.0

๐ŸŽจ Negligible Changes
- Use f-strings rather than format
- Use NotImplementedError
- Remove MISSING and replace with Optional for Messages
- Using TypedDicts for JSON

โœจ New Changes
- Added type-hinting QalibContext, QalibInteraction, and Renderer so binding keys now works
py
from typing import Literal

import discord
from discord.ext.commands import AutoShardedBot
import qalib


bot = AutoShardedBot(intents=discord.Intents.all(), command_prefix="!")
Messages = Literal["balance"]


bot.command()
qalib.qalib_context(formatter.Formatter(), "messages.xml")
async def balance(ctx: qalib.QalibContext[Messages]):
await ctx.rendered_send("balance")



๐Ÿงช Tests Changes
- Using mock rather than user-defined MockedClasses when possible
- Added Type Hints binding
- Made util.py in tests to refactor โ™ป๏ธ

๐Ÿ“ Documentation
- Fixed documentation errors, that don't wholly show how to use it, and potential bugs
- Added how to use type-hints to bind to the key

๐Ÿ› Fixed Bugs
- Pull Request should resolve a lot of bugs, and fix issues with using slash commands
- Fix issues with presenting emojis in components
- pyright passes โœ…
- mypy passes โœ…
- pylint passes โœ…

๐Ÿ–Œ๏ธ Formatter
- Running black formatter, pyproject.toml contains info on how to format

โฌ†๏ธ Minor Version Increase


**Full Changelog**: https://github.com/YousefEZ/discord-qalib/compare/2.0.0...2.1.0

2.0.0

**Full Changelog**: https://github.com/YousefEZ/discord-qalib/compare/1.0.1...2.0.0

1.0.1

Added ability to use the ``qalib_context`` and ``qalib_interaction`` decorators with async methods.

1.0.0

Stable version of the library. has been uploaded onto [pyapi](https://github.com/YousefEZ/discord-qalib/commits/1.0.0). Read the [documentation](https://yousefez.github.io/discord-qalib/) or the [wiki](https://github.com/YousefEZ/discord-qalib/wiki) for more details on how to use the library.

Page 3 of 3

ยฉ 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.