Skip to content

feat(card): add invisible theme#243

Merged
TWT233 merged 1 commit into
TWT233:mainfrom
musnows:add-invisible-card-theme
Jul 3, 2026
Merged

feat(card): add invisible theme#243
TWT233 merged 1 commit into
TWT233:mainfrom
musnows:add-invisible-card-theme

Conversation

@musnows

@musnows musnows commented May 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Types.Theme.INVISIBLE with the value invisible so card messages can use KOOK's invisible card theme through the SDK instead of failing enum validation.

Test

import json
from khl.card import Card, CardMessage, Types

card = Card(theme='invisible')
payload = json.loads(json.dumps(CardMessage(card), ensure_ascii=False))
assert Types.Theme.INVISIBLE.value == 'invisible'
assert payload[0]['theme'] == 'invisible'

@TWT233 TWT233 merged commit 4ff8d89 into TWT233:main Jul 3, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants