From a62661456cf9bee87a5b80ef511e2f5067eb8325 Mon Sep 17 00:00:00 2001 From: Ollie <69084614+olijeffers0n@users.noreply.github.com> Date: Thu, 15 Jun 2023 20:38:19 +0100 Subject: [PATCH] Type hinting --- rustplus/api/rust_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rustplus/api/rust_api.py b/rustplus/api/rust_api.py index 4aad4ef..a409661 100644 --- a/rustplus/api/rust_api.py +++ b/rustplus/api/rust_api.py @@ -1,6 +1,6 @@ import asyncio import requests -from typing import List +from typing import List, Union from PIL import Image from io import BytesIO from datetime import datetime @@ -84,7 +84,7 @@ async def get_time(self) -> RustTime: return format_time(response) - async def send_team_message(self, message: str) -> None: + async def send_team_message(self, message: Union[str, object]) -> None: await self._handle_ratelimit(2) app_send_message = AppSendMessage()