Skip to content

Commit

Permalink
feat: remove now obsolete snowflake_dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharp-Eyes committed Sep 21, 2024
1 parent 545d14a commit c3f2c51
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/disnake/ext/components/impl/parser/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,10 @@
import disnake
from disnake.ext.components.impl.parser import base as parser_base
from disnake.ext.components.impl.parser import builtins as builtins_parsers
from typing_extensions import deprecated

__all__: typing.Sequence[str] = ("SnowflakeParser",)


# TODO: Remove
@deprecated("replace all usage pls")
def snowflake_dumps(argument: disnake.abc.Snowflake) -> str:
"""Dump any kind of :class:`disnake.abc.Snowflake` to a string."""
return str(argument.id)


@parser_base.register_parser_for(disnake.abc.Snowflake, disnake.Object)
class SnowflakeParser(parser_base.Parser[disnake.abc.Snowflake]):
r"""Parser implementation for :class:`disnake.abc.Snowflake`\s.
Expand Down

0 comments on commit c3f2c51

Please sign in to comment.