Functions

Functions Docstring

functions.IntToRgb(RGBint: int)

Converts a integer color value to a RGB tuple

Parameters:RGBintint The 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:
  • rgbtuple[int,int,int] RGB tuple
  • notuple[int,int,int] RGB tuple
Returns:

int The integer color value.

functions.embed(title, url=<Mock name='mock.embeds.EmptyEmbed' id='140103618751632'>, description=<Mock name='mock.embeds.EmptyEmbed' id='140103618751632'>, 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:
  • titlestr Title of the embed
  • urlOptional[str] url of the title
  • descriptionOptional[str] Description of the embed
  • fieldsOptional[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
  • imageOptional[str] Url of the embed image
  • thumbnailOptional[str] Url of the thumbnail image
  • authorOptional[Dict[str,str]] Author of the embed
  • footerOptional[Dict[str,str]] Footer of the embed
  • colorOptional[Union[Tuple[int,int,int],int]] Color of the embed, eighter RGB tuple or int
Returns:

discord.Embed

Returns if a string contains a link.

Parameters:textstr String to check
Returns:bool If the string has a link.