disclaimer="Please note that this grants access to modify (and delete!) all your system data, so keep it safe and secure. If it leaks or you need a new one, you can invalidate this one with `pk;token refresh`."
token_message="Here's your API token: \n**`{}`**\n{}".format(token,disclaimer)
returnawaitreply_dm(ctx,token_message)
asyncdefrefresh_token(ctx:CommandContext):
system=awaitctx.ensure_system()
token=awaitsystem.refresh_token(ctx.conn)
token_message="Your previous API token has been invalidated. You will need to change it anywhere it's currently used.\nHere's your new API token:\n**`{}`**\n{}".format(token,disclaimer)