Server Response

The class when getting response for the Server

Parameters

  • payload: The payload to be converted

Attributes

  • response: Decoded response that is ready for use.

  • error: Optionally returns any errors that from the server side.

  • status: The status code after being converted to enum.Enum

Example usage

from quart import Quart
from discord.ext.ipc import Client

app = Quart(__name__)
ipc = Client(secret_key="🐼")

@app.route('/')
async def main():
    resp = await ipc.request("get_user_data", user_id=383946213629624322)
    return str(resp.response)

if __name__ == '__main__':
    app.run()

Last updated