Remove return value from sending webhook notif
This commit is contained in:
@@ -14,7 +14,7 @@ class DiscordClient:
|
|||||||
|
|
||||||
def send_information_to_discord(
|
def send_information_to_discord(
|
||||||
self, stream: StreamInformation, profile_image: str
|
self, stream: StreamInformation, profile_image: str
|
||||||
) -> str:
|
) -> None:
|
||||||
logger.info("Sending a message with an embed to the webhook...")
|
logger.info("Sending a message with an embed to the webhook...")
|
||||||
streamer_url = f"https://www.twitch.tv/{stream.user_login}"
|
streamer_url = f"https://www.twitch.tv/{stream.user_login}"
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
@@ -56,7 +56,6 @@ class DiscordClient:
|
|||||||
|
|
||||||
self._notification_msg_id = response.json()["id"]
|
self._notification_msg_id = response.json()["id"]
|
||||||
logger.info("Stream information sent with ping to Discord.")
|
logger.info("Stream information sent with ping to Discord.")
|
||||||
return self._notification_msg_id
|
|
||||||
|
|
||||||
def update_information_on_discord(
|
def update_information_on_discord(
|
||||||
self, stream: StreamInformation, profile_image: str
|
self, stream: StreamInformation, profile_image: str
|
||||||
|
|||||||
Reference in New Issue
Block a user