Skip to content

Commit

Permalink
Add new invite types
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluenix2 committed Jun 2, 2024
1 parent 6f2cad2 commit 5e830a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions discord_typings/_resources/_invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

__all__ = (
'InviteData',
'InviteTypes',
'InviteTargetTypes',
'InviteMetadata',
'InviteStageInstanceData',
Expand All @@ -16,6 +17,7 @@


class InviteData(TypedDict):
type: 'discord_typings.InviteTypes'
code: str
guild: NotRequired['discord_typings.PartialGuildData']
channel: Optional['discord_typings.PartialChannelData']
Expand All @@ -30,6 +32,12 @@ class InviteData(TypedDict):
guild_scheduled_event: NotRequired['discord_typings.GuildScheduledEventData']


# https://discord.com/developers/docs/resources/invite#invite-object-invite-types


InviteTypes = Literal[0, 1, 2]


# https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types


Expand Down

0 comments on commit 5e830a7

Please sign in to comment.