Skip to content

Commit

Permalink
[types] Snowflake can be either str or int.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Apr 9, 2021
1 parent 4134a17 commit ca84d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/types/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
DEALINGS IN THE SOFTWARE.
"""

from typing import List
from typing import List, Union

Snowflake = str
Snowflake = Union[str, int]
SnowflakeList = List[Snowflake]

0 comments on commit ca84d4e

Please sign in to comment.