From 0d978286dedd27a4c3a02e2d2cc56bb2d1439de1 Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Sun, 10 Dec 2023 14:00:09 +1100 Subject: [PATCH] feat: Add **kwargs passthrough to `client.load_extensions` Fixes #1552 --- interactions/client/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interactions/client/client.py b/interactions/client/client.py index 2d4da248f..ea9243cf7 100644 --- a/interactions/client/client.py +++ b/interactions/client/client.py @@ -2012,6 +2012,7 @@ def load_extensions( self, *packages: str, recursive: bool = False, + **load_kwargs: Any, ) -> None: """ Load multiple extensions at once. @@ -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