Resources¶
invite
¶
Invite
dataclass
¶
Bases: BaseResource
flowchart TD
scurrypy.resources.invite.Invite[Invite]
scurrypy.resources.base_resource.BaseResource[BaseResource]
scurrypy.resources.base_resource.BaseResource --> scurrypy.resources.invite.Invite
click scurrypy.resources.invite.Invite href "" "scurrypy.resources.invite.Invite"
click scurrypy.resources.base_resource.BaseResource href "" "scurrypy.resources.base_resource.BaseResource"
Represents a Discord invite.
code: str
instance-attribute
¶
Invite code.
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