Functions¶
Functions Docstring
-
functions.
IntToRgb
(RGBint: int)¶ Converts a integer color value to a RGB tuple
Parameters: RGBint – int
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: - rgb –
tuple[int,int,int]
RGB tuple - no –
tuple[int,int,int]
RGB tuple
Returns: int
The integer color value.- rgb –
-
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: - title –
str
Title 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 – str
String to checkReturns: bool
If the string has a link.