66 Commits

Author SHA1 Message Date
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
3d5966b0e3
Add member name lookup (#16) 2025-06-10 15:56:11 -06:00
feb806cc05
Add delete method to Message (#21) 2025-06-10 15:56:00 -06:00
e9375a5a36
Implement requires_permissions decorator (#22)
* Add permissions check decorator

* Refactor command decorator and add permission computation logic
2025-06-10 15:54:00 -06:00
1ff56106c9
Implement gateway reconnection backoff (#24) 2025-06-10 15:49:11 -06:00
09fae8a489
Add Webhook.from_url utility (#14) 2025-06-10 15:47:34 -06:00
7f0b03fa69
Add file upload support (#13) 2025-06-10 15:45:25 -06:00
06f972851b
feat: emit raw gateway events (#15) 2025-06-10 15:45:14 -06:00
4c203f6792
Add Member.top_role property (#17) 2025-06-10 15:45:08 -06:00
1c2241c9c4
Add AutoShardedClient with automatic shard count (#18) 2025-06-10 15:45:01 -06:00
0eed122f02
Refactor voice client with audio sources (#19) 2025-06-10 15:44:54 -06:00
15f969c7e6
Add member and ban events (#20) 2025-06-10 15:44:45 -06:00
f9a7895ecb
Extend tasks with scheduling options (#23) 2025-06-10 15:44:35 -06:00
484f091897
Implement channel permissions resolution (#11)
* Add channel permission resolution

* Fix target ID handling in permission overwrite retrieval
2025-06-10 15:43:54 -06:00
c6fb120449
feat: measure gateway latency (#10) 2025-06-10 15:40:16 -06:00