This commit is contained in:
2024-11-17 02:49:55 +01:00
parent e6ec0b7c1a
commit d6716ea49b

View File

@@ -74,6 +74,8 @@ async def notify(notification_type: Literal["start"] | Literal["change_category"
if (discord := integrations.discord) is not None: if (discord := integrations.discord) is not None:
if discord.notifications_channel_id is not None: if discord.notifications_channel_id is not None:
# TODO: Get roles from discord api
role_id = get_role_id(streamer_config, current_state.category) role_id = get_role_id(streamer_config, current_state.category)
if role_id is not None: if role_id is not None:
role = f"<@&{role_id}>" role = f"<@&{role_id}>"