130 Commits

Author SHA1 Message Date
a4aa4335a5
Merge branch 'master' of https://github.com/Slipstreamm/disagreement 2025-06-10 20:49:58 -06:00
463ad26217
Merge pull request #47 from Slipstreamm/codex/add-json-persistence-for-command-ids
Merge PR #47
2025-06-10 20:49:48 -06:00
029a0fe2bd
Merge pull request #49 from Slipstreamm/codex/implement-max_concurrency-decorator
Merge PR #49
2025-06-10 20:49:45 -06:00
b0f9381fa6 Add max concurrency support 2025-06-10 20:48:19 -06:00
5d3778b083 Add command ID persistence 2025-06-10 20:48:18 -06:00
b9d93a90fa
Adds invite management functionality
Introduces comprehensive invite handling capabilities including creation, deletion, and retrieval operations.

Implements invite data model with proper parsing and representation methods to handle Discord invite objects and their metadata.

Provides HTTP client methods for all invite-related API endpoints with appropriate error handling and response processing.

Includes documentation with practical examples for common invite operations.
2025-06-10 20:37:21 -06:00
669f00e745
Add extensive color helper methods (#40) 2025-06-10 18:42:52 -06:00
7db71e8124
fix: update user agent URL in HTTPClient 2025-06-10 18:36:24 -06:00
97273ce655
Format with black 2025-06-10 18:26:23 -06:00
d631ab8e7c
bump: update version to 0.1.0rc3 in __init__.py and pyproject.toml v0.1.0rc3 2025-06-10 18:25:43 -06:00
d074839a29
Remove duplicate asyncio import and sort (#35) 2025-06-10 18:24:43 -06:00
09c2b3e0cf
Fix application_id handling (#36) 2025-06-10 18:24:37 -06:00
f91c6917b8
fix: ensure newline termination (#37) 2025-06-10 18:24:29 -06:00
fd31a3162b
Replace debug prints with logging (#38) 2025-06-10 18:24:00 -06:00
90ee3fcf7f
Include py.typed in package (#39) 2025-06-10 18:23:42 -06:00
f92425bbd1
Bump version to 0.1.0rc2 in __init__.py and pyproject.toml v0.1.0rc2 2025-06-10 18:08:41 -06:00
134506e6ba
Removes duplicate code and unnecessary imports
Cleans up codebase by removing redundant type casting, unused imports, and duplicate method definitions.

Eliminates duplicate embeds list comprehension that was accidentally duplicated.

Removes unnecessary typing imports and cast operation that were no longer needed.

Deletes duplicate history method implementation that was redundant.
2025-06-10 18:06:50 -06:00
92b0bc5804
Add webhook send capability (#33) 2025-06-10 18:01:28 -06:00
71097c6fbe
Add async message pager and channel history (#32) 2025-06-10 18:01:21 -06:00
d423f5c03a
Add client extension management and examples (#30) 2025-06-10 17:59:24 -06:00
900cd27cc3
Merge pull request #28 from Slipstreamm/codex/add-display_name-property-on-member
Merge PR #28
2025-06-10 17:57:40 -06:00
b1861d510f
Merge pull request #29 from Slipstreamm/codex/add-reaction-methods-to-message
Merge PR #29
2025-06-10 17:57:38 -06:00
fdfb2034d5
Merge remote-tracking branch 'origin/master' into codex/add-reaction-methods-to-message 2025-06-10 17:57:26 -06:00
b375dc7d05
Merge remote-tracking branch 'origin/master' into codex/add-display_name-property-on-member 2025-06-10 17:57:06 -06:00
b9bfa24511
Merge pull request #26 from Slipstreamm/codex/implement-ratelimiter-in-httpclient
Merge PR #26
2025-06-10 17:56:28 -06:00
477419bd96
Merge pull request #27 from Slipstreamm/codex/implement-gatewayintent.none-returning-0
Merge PR #27
2025-06-10 17:56:26 -06:00
c27a25955a
Merge remote-tracking branch 'origin/master' into codex/implement-gatewayintent.none-returning-0 2025-06-10 17:56:02 -06:00
0630c8b916
Merge remote-tracking branch 'origin/master' into codex/implement-ratelimiter-in-httpclient 2025-06-10 17:55:09 -06:00
eb8d7a9656
Merge pull request #31 from Slipstreamm/codex/add-before_loop-and-after_loop-callbacks
Merge PR #31
2025-06-10 17:54:08 -06:00
d67097a619
Merge pull request #34 from Slipstreamm/codex/create-async-iterator-for-message-history
Merge PR #34
2025-06-10 17:54:04 -06:00
39b05bc958 Add message history iterator 2025-06-10 17:53:14 -06:00
df77a3fcec Add before/after loop callbacks 2025-06-10 17:52:05 -06:00
105640e54b Add reaction helpers and update tests 2025-06-10 17:52:02 -06:00
dfbda351e4 Add Member.display_name property and update docs/tests 2025-06-10 17:52:01 -06:00
8b0e6fcce2 Add GatewayIntent.none method with docs and tests 2025-06-10 17:52:00 -06:00
e55e963a59 Add rate limiter integration with HTTPClient 2025-06-10 17:51:58 -06:00
c0066525db
Add test for Color.parse method to validate tuple input for RGB values 2025-06-10 17:51:22 -06:00
e7773373f4
Enhance Color.parse method to accept tuple input for RGB values 2025-06-10 17:49:36 -06:00
9df06868a4
Allow color parameters to accept multiple formats (#25) 2025-06-10 17:45:52 -06:00
534b5b3980
Refactors interaction response handling for flexibility
Simplifies modal response creation by accepting both structured data objects and raw dictionaries, reducing unnecessary type casting and import dependencies.

Improves text input decorator by auto-generating custom IDs from function names when not explicitly provided.

Enhances example code by properly utilizing parsed Guild objects instead of raw data and fixes modal component registration.
2025-06-10 17:33:54 -06:00
b20f1fd292
Load environment variables from .env file in sharded bot example 2025-06-10 16:49:50 -06:00
6d5b92ad69
Fixes component type checking and import issues
Changes component validation to use the more general ComponentModel instead of ActionRowModel, allowing broader component types to be processed correctly.

Makes reply content parameter optional to improve API flexibility.

Adds missing import for Cog class to prevent runtime errors during cog validation.
2025-06-10 16:44:02 -06:00
60a183742a
Updates Python version requirements and refactors hybrid commands
Lowers minimum Python requirement from 3.11 to 3.10 to increase compatibility while updating CI to use Python 3.13 for testing.

Extracts hybrid command functionality into a separate module to improve code organization and reduce complexity in the main commands module.

Updates test timeouts and dependency versions to ensure reliable test execution and modern package compatibility.
2025-06-10 16:39:12 -06:00
35414c3085
Bump version to 0.1.0rc1 in __init__.py and pyproject.toml v0.1.0rc1 2025-06-10 16:18:14 -06:00
db72e604fb
Add tag format validation step to PyPI publish workflow 2025-06-10 16:11:55 -06:00
81ea79a94d
Refactor: Move permission calculation to Channel model
The _compute_permissions helper function has been simplified by delegating the complex permission calculation logic to a new channel.permissions_for(member) method.

This refactoring encapsulates the permission logic within the Channel model, where it belongs. It removes duplicate and complex code from the command decorator, improving maintainability and separation of concerns.

The tests for requires_permissions have been updated to mock the new permissions_for method, resulting in cleaner tests that are no longer concerned with the internal implementation details of how permissions are calculated.
2025-06-10 16:05:33 -06:00
61222e1df7
Fix target ID assignment in Channel permissions and add guild_id to test Channel class 2025-06-10 16:00:24 -06:00
3d0f26f68f
Merge branch 'master' of https://github.com/Slipstreamm/disagreement 2025-06-10 15:58:15 -06:00
d0ccf39cfb
Add guild property to CommandContext for command invocation context 2025-06-10 15:58:13 -06:00
21cdb921a8
Add TextChannel purge support (#12) 2025-06-10 15:57:00 -06:00