sxcu.OGProperties

class sxcu.OGProperties(color: Union[str, bool] = None, description: Union[str, bool] = None, title: Union[str, bool] = None, discord_hide_url: bool = False, site_name: Union[str, bool] = None)

This is a helper class for main SXCU function. This helps you to reuse the OGProperties.

__init__(color: Union[str, bool] = None, description: Union[str, bool] = None, title: Union[str, bool] = None, discord_hide_url: bool = False, site_name: Union[str, bool] = None)None

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__

Initialize self.

export

Exports the Property set to a JSON file.

from_json

Import the Property set from parsing JSON.

export()str

Exports the Property set to a JSON file.

Returns

Using json.dumps the content of JSON file is dumped.

Return type

str

classmethod from_json(contents: str) → sxcu.og_properties.OGProperties

Import the Property set from parsing JSON.

Parameters

contents (str) – The contents in JSON which needs to be parsed.

Returns

Using json.dumps the content of JSON file is dumped.

Return type

str