Invite Resource¶
Note
The following classes come from the scurrypy.resources.invite module.
Invite
dataclass
¶
Bases: BaseResource
Represents a Discord invite.
code: str
instance-attribute
¶
Invite code.
context: Any
instance-attribute
¶
Associated user data.
fetch
async
¶
Fetch the invite object for the given code.
Parameters:
-
with_counts(bool, default:None) –whether the model should contain approximate member counts
Returns:
-
InviteModel–queried invite object
delete
async
¶
Delete the invite for the given code.
Fires InviteDeleteEvent.
Permissions
Requires MANAGE_CHANNELS on the channel this invite belongs to
or MANAGE_GUILD to remove any invite across the guild
Returns:
-
InviteModel–deleted invite object