Snowflake Parser Implementation¶
Parser implementations for basic disnake snowflake types.
Classes¶
- class disnake_compass.impl.parser.snowflake.SnowflakeParser(int_parser=NOTHING)[source]¶
-
Parser implementation for
disnake.abc.Snowflakes.Note
As snowflakes are abstact,
loads()returns adisnake.Objectinstead.- Parameters:
int_parser (
IntParser) – TheIntParserto use internally for this parser.
Attributes¶
Methods¶
- await dumps(argument, /)[source]¶
Dump a snowflake into a string.
This uses the underlying
int_parser.- Parameters:
argument (
Snowflake) – The value that is to be dumped.
- await loads(argument, /)[source]¶
Load a snowflake from a string.
This uses the underlying
int_parser.- Parameters:
argument (
str) – The value that is to be loaded into a floating point number.