Functions¶
Functions Docstring
-
functions.IntToRgb(RGBint: int)¶ Converts a integer color value to a RGB tuple
Parameters: RGBint – intThe integer color value.Returns: tuple[int,int,int]RGB tuple
-
functions.RgbToInt(rgb: Tuple[int, int, int])¶ Converts a RGB tuple to a integer color value
Parameters: - rgb –
tuple[int,int,int]RGB tuple - no –
tuple[int,int,int]RGB tuple
Returns: intThe integer color value.- rgb –
-
functions.embed(title, url=<Mock name='mock.embeds.EmptyEmbed' id='139832359732560'>, description=<Mock name='mock.embeds.EmptyEmbed' id='139832359732560'>, fields=None, image=None, thumbnail=None, author=None, footer=None, color: Union[Tuple[int, int, int], int] = 0)¶ Returns discord embed from given parameters
Parameters: - title –
strTitle of the embed - url –
Optional[str]url of the title - description –
Optional[str]Description of the embed - fields –
Optional[List[Tuple[str,str,Optional[bool]]]]Fields of the embed. A tuple with item 1 being the name of the field, item 2 the value and item 3 weather is inline or not, item 3 is optional - image –
Optional[str]Url of the embed image - thumbnail –
Optional[str]Url of the thumbnail image - author –
Optional[Dict[str,str]]Author of the embed - footer –
Optional[Dict[str,str]]Footer of the embed - color –
Optional[Union[Tuple[int,int,int],int]]Color of the embed, eighter RGB tuple or int
Returns: discord.Embed
- title –
-
functions.hasLink(text: str)¶ Returns if a string contains a link.
Parameters: text – strString to checkReturns: boolIf the string has a link.