LocalizedString
Class
Translated string built on the fly: L("Bonjour").en_US("Hello").
from discord_interactions.slash import LocalizedStringConstructor
LocalizedString(default: str)| Name | Type | Default | Description |
|---|---|---|---|
default | str | required |
Properties
| Name | Type | Description |
|---|---|---|
value | str | Get the default value. |
Methods
to_dict
def to_dict() -> Dict[str, str]Get localizations for Discord API.