Skip to content

Commit

Permalink
feat: Add **kwargs passthrough to client.load_extensions (#1593)
Browse files Browse the repository at this point in the history
Fixes #1552
  • Loading branch information
silasary authored Feb 21, 2024
1 parent ebe2e1a commit 1d31d96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interactions/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,7 @@ def load_extensions(
self,
*packages: str,
recursive: bool = False,
**load_kwargs: Any,
) -> None:
"""
Load multiple extensions at once.
Expand All @@ -2035,7 +2036,7 @@ def load_extensions(
extensions = [f.replace(os.path.sep, ".").replace(".py", "") for f in glob.glob(pattern, recursive=True)]

for ext in extensions:
self.load_extension(ext)
self.load_extension(ext, **load_kwargs)

def unload_extension(
self, name: str, package: str | None = None, force: bool = False, **unload_kwargs: Any
Expand Down

0 comments on commit 1d31d96

Please sign in to comment.