From 7804328410c6ff6e5611a70ae5b2eb68955ba68b Mon Sep 17 00:00:00 2001 From: Ollie <69084614+olijeffers0n@users.noreply.github.com> Date: Sun, 28 May 2023 20:17:13 +0100 Subject: [PATCH] Cast to a string to avoid floats erroring betterproto --- rustplus/api/rust_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustplus/api/rust_api.py b/rustplus/api/rust_api.py index f901ff4..4aad4ef 100644 --- a/rustplus/api/rust_api.py +++ b/rustplus/api/rust_api.py @@ -88,7 +88,7 @@ async def send_team_message(self, message: str) -> None: await self._handle_ratelimit(2) app_send_message = AppSendMessage() - app_send_message.message = message + app_send_message.message = str(message) app_request = self._generate_protobuf() app_request.send_team_message = app_send_message