pykemo Logo
0.7.1

Table of Contents

  • Creators
  • Accounts
  • Discord Types
  • Enums
  • Exceptions
  • Files
  • Helper Types
  • Posts
  • Sessions
  • Tags
  • Creator Links Requests
    • Creator Link Request
      • CreatorLinkRequest
        • CreatorLinkRequest.approve()
        • CreatorLinkRequest.pending()
        • CreatorLinkRequest.reject()
        • CreatorLinkRequest.set_underlying_session()
pykemo
  • Creator Links Reference
  • View page source

Creator Links Reference

Structures for making and seeing creaotr links requests.

Creator Link Request

class pykemo.moderation.requests.creator_lnk_req.CreatorLinkRequest(*, id, from_creator, to_creator, reason='', requester_id, status)

A request for two creators to be understood as the same person.

Warning

This is NOT supposed to be used as-is. It is ideally only made through Moderator.creator_requests() .

Parameters:
  • id (CreatorLnkReqID) – The ID of the request.

  • from_creator (Creator) – The creator from which to make the link.

  • to_creator (Creator) – The creator to which make the link.

  • reason (str) – The reason for making the link request, if any.

  • requester_id (int) – The ID of the requester’s account.

  • status (CreatorLinkStatus) – The status of the request.

async approve()

Tries to approve the creator link request.

Raises:

InsufficientPrivileges – If, somehow, the one invoking this operation isn`t at least a moderator.

Returns:

A boolean value, indicating wether it was sucessful in approving the request or not.

Return type:

bool

pending()

Checks if the link request is in a PENDING status.

Returns:

Wether the link request is pending or not.

Return type:

bool

async reject()

Tries to reject the creator link request.

Raises:

InsufficientPrivileges – If, somehow, the one invoking this operation isn`t at least a moderator.

Returns:

A boolean value, indicating wether it was sucessful in rejecting the request or not.

Return type:

bool

set_underlying_session(ks)

Quietly sets the session which the creator request uses for its requests.

Parameters:
  • session (KemoSession) – The session instance.

  • ks (KemoSession)

Returns:

The same instance of the request, for convenience.

Return type:

CreatorLinkRequest

Previous

© Copyright .

Built with Sphinx using a theme provided by Read the Docs.