You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While not officially documented other than the 'Friend' invite type, invites that point directly to a user are supported.
This raises the issue of invites not having either a guild(_id) or a channel(_id) associated with them, as the Invite class hints that guild, guild_id, and channel can be None but not channel_id. The channel field in an Invite response object is described as being nullable
These friend-specific invites look like this (note the null channel and type: 2)
Noticed a few discrepancies while working on #2212 / #2224 -
invites.Inviteis missing an enum field for all the possible invite types.guild,guild_id, andchannelcan be None but notchannel_id. Thechannelfield in an Invite response object is described as being nullablenullchannel andtype: 2)max_usesis always set to 5, andmax_ageis always 7 days/expires_atis alwayscreated_at + 7 daysguild_scheduled_event(_id)is also listed as a possible (nullable) field on an Invite object, but it's missing frominvites.Inviteand should be added