sxcu.OGProperties

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

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

__init__(color: str = None, description: str = None, title: str = None, discord_hide_url: bool = False)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.sxcu.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