From faf867b55f15b68648580c9ba04bdf21b26252ea Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Wed, 14 Jun 2023 14:01:13 +0200 Subject: [PATCH] Cast bool to int --- discord/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/http.py b/discord/http.py index d17ae14ee..f41a14142 100644 --- a/discord/http.py +++ b/discord/http.py @@ -2131,7 +2131,7 @@ class HTTPClient: def get_global_commands( self, application_id: Snowflake, with_localizations: bool = False ) -> Response[List[command.ApplicationCommand]]: - params = {'with_localizations': with_localizations} + params = {'with_localizations': int(with_localizations)} return self.request( Route('GET', '/applications/{application_id}/commands', application_id=application_id), params=params ) @@ -2194,7 +2194,7 @@ class HTTPClient: guild_id: Snowflake, with_localizations: bool = False, ) -> Response[List[command.ApplicationCommand]]: - params = {'with_localizations': with_localizations} + params = {'with_localizations': int(with_localizations)} r = Route( 'GET', '/applications/{application_id}/guilds/{guild_id}/commands',